1
0
mirror of https://github.com/mintty/wsltty.git synced 2024-10-05 18:31:04 +01:00

Use new mintty option --dir, simplifying registry entry for context menu and dropping the need for dash.exe

This commit is contained in:
mintty 2016-09-29 14:53:34 +02:00
parent eef97b91d7
commit 74cb9ea92b
3 changed files with 16 additions and 17 deletions

View File

@ -15,7 +15,7 @@ rem copy wsl.bat "%SYSTEMROOT%\System32"
mkdir "%LOCALAPPDATA%\wsltty\bin"
copy cygwin1.dll "%LOCALAPPDATA%\wsltty\bin"
copy cygwin-console-helper.exe "%LOCALAPPDATA%\wsltty\bin"
copy dash.exe "%LOCALAPPDATA%\wsltty\bin"
rem copy dash.exe "%LOCALAPPDATA%\wsltty\bin"
copy mintty.exe "%LOCALAPPDATA%\wsltty\bin"
copy wslbridge.exe "%LOCALAPPDATA%\wsltty\bin"
copy wslbridge-backend "%LOCALAPPDATA%\wsltty\bin"
@ -57,7 +57,8 @@ set cset=-o Locale=C -o Charset=UTF-8
set icon=%LOCALAPPDATA%\lxss\bash.ico
set arg=/bin/wslbridge -t %shell%
set target0=\"%cmd%\" %cset% -i \"%icon%\" %arg%
set target1=\"%cmd%\" %cset% -i \"%icon%\" /bin/dash -c \"cd '%%1'; exec %arg%\"
rem set target1=\"%cmd%\" %cset% -i \"%icon%\" /bin/dash -c \"cd '%%1'; exec %arg%\"
set target1=\"%cmd%\" %cset% -i \"%icon%\" --dir \"%%1\" %arg%
reg add "%userdirname%\wsltty" /d "%label% %here%" /f
reg add "%userdirname%\wsltty" /v Icon /d "%icon%" /f

View File

@ -2,8 +2,8 @@
# default: generate all
all: wslbridge mintty cygwin wsltty pkg
ver=0.6.0
wslbridgever=0.1.0
ver=0.6.1
wslbridgever=0.2.0
TARGET := $(shell $(CC) -dumpmachine)
@ -44,7 +44,7 @@ cygwin:
mkdir -p bin
cp /bin/cygwin1.dll bin/
cp /bin/cygwin-console-helper.exe bin/
cp /bin/dash.exe bin/
#cp /bin/dash.exe bin/
wsltty:
@ -53,7 +53,7 @@ pkg:
sed -e "s,%version%,$(ver)," makewinx.cfg > rel/wsltty.SED
cp bin/cygwin1.dll rel/
cp bin/cygwin-console-helper.exe rel/
cp bin/dash.exe rel/
#cp bin/dash.exe rel/
cp bin/mintty.exe rel/
cp bin/wslbridge.exe rel/
cp bin/wslbridge-backend rel/

View File

@ -34,16 +34,15 @@ AdminQuietInstCmd=
UserQuietInstCmd=
FILE0="cygwin1.dll"
FILE1="cygwin-console-helper.exe"
FILE2="dash.exe"
FILE3="mintty.exe"
FILE4="wslbridge.exe"
FILE5="wslbridge-backend"
FILE6="LICENSE.mintty"
FILE7="LICENSE.wslbridge"
FILE8="Bash on UoW in Mintty.lnk"
FILE9="wsl.bat"
FILE10="install.bat"
FILE11="uninstall.bat"
FILE2="mintty.exe"
FILE3="wslbridge.exe"
FILE4="wslbridge-backend"
FILE5="LICENSE.mintty"
FILE6="LICENSE.wslbridge"
FILE7="Bash on UoW in Mintty.lnk"
FILE8="wsl.bat"
FILE9="install.bat"
FILE10="uninstall.bat"
[SourceFiles]
SourceFiles0=.
@ -60,5 +59,4 @@ SourceFiles0=.
%FILE8%=
%FILE9%=
%FILE10%=
%FILE11%=