commit 20807f84b8219466014fa486ec5d6f34d43f8068 Author: mintty Date: Sun Sep 11 14:20:39 2016 +0200 diff --git a/Bash on UoW in Mintty.lnk b/Bash on UoW in Mintty.lnk new file mode 100755 index 0000000..a849e8b Binary files /dev/null and b/Bash on UoW in Mintty.lnk differ diff --git a/install.bat b/install.bat new file mode 100755 index 0000000..b4c3a06 --- /dev/null +++ b/install.bat @@ -0,0 +1,15 @@ +@echo off +mkdir "%LOCALAPPDATA%\wsltty" +mkdir "%LOCALAPPDATA%\wsltty\bin" +mkdir "%LOCALAPPDATA%\wsltty\etc" +copy LICENSE.mintty "%LOCALAPPDATA%\wsltty" +copy LICENSE.wslbridge "%LOCALAPPDATA%\wsltty" +copy etc/minttyrc "%LOCALAPPDATA%\wsltty\etc" +copy cygwin1.dll "%LOCALAPPDATA%\wsltty\bin" +copy cygwin-console-helper.exe "%LOCALAPPDATA%\wsltty\bin" +copy mintty.exe "%LOCALAPPDATA%\wsltty\bin" +copy wslbridge.exe "%LOCALAPPDATA%\wsltty\bin" +copy wslbridge-backend "%LOCALAPPDATA%\wsltty\bin" +copy "Bash on UoW in Mintty.lnk" "%USERPROFILE%\Desktop" +copy "Bash on UoW in Mintty.lnk" "%APPDATA%\Microsoft\Windows\Start Menu" + diff --git a/makefile b/makefile new file mode 100755 index 0000000..ccfbf43 --- /dev/null +++ b/makefile @@ -0,0 +1,65 @@ +############################################################################# +# default: generate all +all: wslbridge mintty cygwin wsltty pkg + +wslbridgever=0.1.0 +ver=$(wslbridgever) + +TARGET := $(shell $(CC) -dumpmachine) + +ifeq ($(TARGET), i686-pc-cygwin) + sys := cygwin32 +else ifeq ($(TARGET), x86_64-pc-cygwin) + sys := cygwin64 +else ifeq ($(TARGET), i686-pc-msys) + sys := msys32 +else ifeq ($(TARGET), x86_64-pc-msys) + sys := msys64 +else + $(error Target '$(TARGET)' not supported) +endif + +############################################################################# +# generation + +wslbridge: + wget https://github.com/rprichard/wslbridge/releases/download/$(wslbridgever)/wslbridge-$(wslbridgever)-$(sys).tar.gz -O wslbridge-$(wslbridgever)-$(sys).tar.gz + tar xvzf wslbridge-$(wslbridgever)-$(sys).tar.gz + mkdir -p bin + cp wslbridge-$(wslbridgever)-$(sys)/wslbridge* bin/ + cp wslbridge-$(wslbridgever)-$(sys)/LICENSE.txt LICENSE.wslbridge + +mintty: + wget https://github.com/mintty/mintty/archive/master.zip -O mintty.zip + unzip mintty.zip + cd mintty-master/src; make LDFLAGS="-static -static-libgcc -s" + mkdir -p bin + cp mintty-master/bin/mintty.exe bin/ + cp mintty-master/LICENSE LICENSE.mintty + +cygwin: + mkdir -p bin + cp /bin/cygwin1.dll bin/ + cp /bin/cygwin-console-helper.exe bin/ + +wsltty: + mkdir -p etc + touch etc/minttyrc + +pkg: + mkdir -p rel + sed -e "s,%version%,$(ver)," makewinx.cfg > rel/wsltty.SED + cp bin/cygwin1.dll rel/ + cp bin/cygwin-console-helper.exe rel/ + cp bin/mintty.exe rel/ + cp bin/wslbridge.exe rel/ + cp bin/wslbridge-backend rel/ + cp LICENSE.mintty rel/ + cp LICENSE.wslbridge rel/ + cp etc/minttyrc rel/ + cp "Bash on UoW in Mintty.lnk" rel/ + cp install.bat rel/ + cd rel; iexpress /n wsltty.SED + +############################################################################# +# end diff --git a/makewinx.cfg b/makewinx.cfg new file mode 100755 index 0000000..5934550 --- /dev/null +++ b/makewinx.cfg @@ -0,0 +1,60 @@ +[Version] +Class=IEXPRESS +SEDVersion=3 + +[Options] +PackagePurpose=InstallApp +ShowInstallProgramWindow=0 +HideExtractAnimation=0 +UseLongFileName=1 +InsideCompressed=0 +CAB_FixedSize=0 +CAB_ResvCodeSigning=0 +RebootMode=N +InstallPrompt=%InstallPrompt% +DisplayLicense=%DisplayLicense% +FinishMessage=%FinishMessage% +TargetName=%TargetName% +FriendlyName=%FriendlyName% +AppLaunched=%AppLaunched% +PostInstallCmd=%PostInstallCmd% +AdminQuietInstCmd=%AdminQuietInstCmd% +UserQuietInstCmd=%UserQuietInstCmd% +SourceFiles=SourceFiles + +[Strings] +InstallPrompt=Install Mintty terminal for WSL / Ubuntu on Windows? +DisplayLicense= +FinishMessage=Mintty for WSL installed - for documentation see https://github.com/mintty/mintty/wiki/Tips +TargetName=wsltty-%version%-install.exe +FriendlyName=wsltty +AppLaunched=cmd.exe /c install.bat +PostInstallCmd= +AdminQuietInstCmd= +UserQuietInstCmd= +FILE0="cygwin1.dll" +FILE1="cygwin-console-helper.exe" +FILE2="mintty.exe" +FILE3="wslbridge.exe" +FILE4="wslbridge-backend" +FILE5="LICENSE.mintty" +FILE6="LICENSE.wslbridge" +FILE7="minttyrc" +FILE8="Bash on UoW in Mintty.lnk" +FILE9="install.bat" + +[SourceFiles] +SourceFiles0=. + +[SourceFiles0] +%FILE0%= +%FILE1%= +%FILE2%= +%FILE3%= +%FILE4%= +%FILE5%= +%FILE6%= +%FILE7%= +%FILE8%= +%FILE9%= +