From 20807f84b8219466014fa486ec5d6f34d43f8068 Mon Sep 17 00:00:00 2001 From: mintty Date: Sun, 11 Sep 2016 14:20:39 +0200 Subject: [PATCH] --- Bash on UoW in Mintty.lnk | Bin 0 -> 1911 bytes install.bat | 15 +++++++++ makefile | 65 ++++++++++++++++++++++++++++++++++++++ makewinx.cfg | 60 +++++++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+) create mode 100755 Bash on UoW in Mintty.lnk create mode 100755 install.bat create mode 100755 makefile create mode 100755 makewinx.cfg diff --git a/Bash on UoW in Mintty.lnk b/Bash on UoW in Mintty.lnk new file mode 100755 index 0000000000000000000000000000000000000000..a849e8bde56ed2db494ea79db77aeaccf61a7001 GIT binary patch literal 1911 zcmd^ zgNJUL1u7nDeSb0=HKUeHE>?BMM&qOzqoT{}LK?J2RSz0Vbs8fh~+nwn` zNCN|Acf`$}NQtZK`qB&Q<(}<(XP2uU%s>CUbgQRbiZ{(a?VFo9dl-38a~-`+J1yoK zI7fX&pmK#tlaa1-kTAevhMVgOdLx|4b!%*)69uq`yzT(@r!hspU>2{-jOROGM+jch z0`$_Nb&Y2wFB%R+B16EzBvH_6Y*vN%_?_5XjW8J!MVPb*3#Xz8&1+0cX8}C^el+~T zvvi6betj=6dSNoe13&uNSBP%xfykrYCe7#&^!Iaj24BnvSkj2qwtZuQSpPwQ%7w|0 zph8US&;TD|RG@^~LoKC>TO#Uus*qFEVrn+k71wMM_aYLChJs-~Oh&ma>>CWrqC-yR zURH7;Cn6~G&~o~A>tSG#leUck^I?!yX3#>2QssG3nfG7RrwNPwZJ;Q9`-B-RqIos-v4;&qWYA~W4F zdW-$1<{8NL@*GtRR30!Pf?3z%Y5NQpNA$mzuRP>p#c(-*dk)qx1iqO8jJU_$IznjQkdFD4*@qTNXa4Y|om{TVK6A zqFxylW8G9fp@|OGLQ+4cL<<;k_{Ve3>^wI4@m_Cq$UAl6$=yq;*xRi)+BJ(~jkz!W IHZC|n01@L0)c^nh literal 0 HcmV?d00001 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%= +