mirror of
https://github.com/mintty/wsltty.git
synced 2025-01-18 12:05:47 +00:00
This commit is contained in:
commit
20807f84b8
BIN
Bash on UoW in Mintty.lnk
Executable file
BIN
Bash on UoW in Mintty.lnk
Executable file
Binary file not shown.
15
install.bat
Executable file
15
install.bat
Executable file
@ -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"
|
||||
|
65
makefile
Executable file
65
makefile
Executable file
@ -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
|
60
makewinx.cfg
Executable file
60
makewinx.cfg
Executable file
@ -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=<None>
|
||||
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%=
|
||||
|
Loading…
x
Reference in New Issue
Block a user