1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-10-31 23:21:59 +00:00

provide script to refresh shortcut icon after renaming installation dir (#359)

This commit is contained in:
mintty
2024-11-23 00:00:00 +01:00
parent 52b6a57e09
commit 937058f703
2 changed files with 21 additions and 0 deletions

View File

@@ -2,6 +2,13 @@
chcp 65001 > nul
if not exist "WSL Terminal Portable.lnk" goto install
echo Rebuilding WSL Terminal Portable shortcut
set instdir=%~dp0
goto shortcut
:install
echo Installing WSL Terminal Portable
echo Select target folder in popup dialog ...
@@ -25,6 +32,13 @@ rem call main installation
call install "%instdir%" "%instdir%" /P
rem this already changes into "%instdir%"
rem copy additional portable installation files
rem do this after call install as that deletes previous .bat files
copy "%~dp0\install-portable.bat" .
dir "%instdir%"\install-portable.bat
:shortcut
rem create shortcut
cd /D "%instdir%"
rem set drive-relative path for shortcut working directory and icon