mirror of
https://github.com/mintty/wsltty.git
synced 2025-01-18 20:10:58 +00:00
62 lines
1.7 KiB
Batchfile
Executable File
62 lines
1.7 KiB
Batchfile
Executable File
@echo off
|
|
|
|
rem If you change the installation directory,
|
|
rem it also needs to be adapted in
|
|
rem - the Shortcut links *.lnk
|
|
rem - the cmd invocation scripts wsl*.bat
|
|
|
|
set installdir=%LOCALAPPDATA%\wsltty
|
|
|
|
|
|
:deploy
|
|
|
|
mkdir "%installdir%"
|
|
copy LICENSE.mintty "%installdir%"
|
|
copy LICENSE.wslbridge "%installdir%"
|
|
copy uninstall.bat "%installdir%"
|
|
|
|
copy wsl.bat "%installdir%"
|
|
copy wsl~.bat "%installdir%"
|
|
copy wsl-l.bat "%installdir%"
|
|
copy "config-context-menu.bat" "%installdir%"
|
|
copy "add to context menu.lnk" "%installdir%"
|
|
copy "remove from context menu.lnk" "%installdir%"
|
|
rem does not work without admin rights:
|
|
rem copy wsl.bat "%SYSTEMROOT%\System32"
|
|
rem copy wsl~.bat "%SYSTEMROOT%\System32"
|
|
rem copy wsl-l.bat "%SYSTEMROOT%\System32"
|
|
|
|
mkdir "%installdir%\bin"
|
|
copy cygwin1.dll "%installdir%\bin"
|
|
copy cygwin-console-helper.exe "%installdir%\bin"
|
|
rem copy dash.exe "%installdir%\bin"
|
|
copy mintty.exe "%installdir%\bin"
|
|
copy wslbridge.exe "%installdir%\bin"
|
|
copy wslbridge-backend "%installdir%\bin"
|
|
|
|
rem create "home directory" to enable storage of config file
|
|
mkdir "%installdir%\home
|
|
mkdir "%installdir%\home\%USERNAME%"
|
|
|
|
|
|
:shortcuts
|
|
|
|
rem create Start Menu Folder
|
|
set smf=%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty
|
|
mkdir "%smf%"
|
|
echo on
|
|
copy "wsltty home & help.url" "%smf%"
|
|
copy "WSL Bash %% in Mintty.lnk" "%smf%"
|
|
copy "WSL Bash ~ in Mintty.lnk" "%smf%"
|
|
copy "WSL Bash -l in Mintty.lnk" "%smf%"
|
|
mkdir "%smf%\context menu shortcuts"
|
|
copy "add to context menu.lnk" "%smf%\context menu shortcuts"
|
|
copy "remove from context menu.lnk" "%smf%\context menu shortcuts"
|
|
|
|
rem create Desktop Shorcuts
|
|
copy "WSL Bash %% in Mintty.lnk" "%USERPROFILE%\Desktop"
|
|
copy "WSL Bash ~ in Mintty.lnk" "%USERPROFILE%\Desktop"
|
|
|
|
|
|
:end
|