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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user