1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-01-18 20:10:58 +00:00
This commit is contained in:
mintty 2020-04-02 14:44:21 +02:00
parent 70b6f4cc45
commit 8964534a5c

View File

@ -8,10 +8,11 @@
# wsltty release # wsltty release
ver=3.1.4 ver=3.1.4.2
# wsltty appx release - must have 4 parts! # wsltty appx release - must have 4 parts!
verx=3.1.4.0 verx=3.1.4.2
# mintty release version # mintty release version
minttyver=3.1.4 minttyver=3.1.4
@ -27,6 +28,11 @@ wslbridgever=0.5
# wslbridge branch or commit to build from source; # wslbridge branch or commit to build from source;
wslbridge=wslbridge-frontend wslbridge-backend wslbridge=wslbridge-frontend wslbridge-backend
##############################
# build backend on a musl-libc-based distribution
# (reportedly not needed anymore but untested)
BuildDistr=-d Alpine
############################## ##############################
# Windows SDK version for appx # Windows SDK version for appx
WINSDKKEY=/HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Microsoft/.NET Framework Platform/Setup/Multi-Targeting Pack WINSDKKEY=/HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Microsoft/.NET Framework Platform/Setup/Multi-Targeting Pack
@ -114,9 +120,6 @@ wslbridge-frontend: wslbridge-source
# extract binaries # extract binaries
cp wslbridge2-$(wslbridgever)/bin/wslbridge2.exe bin/ cp wslbridge2-$(wslbridgever)/bin/wslbridge2.exe bin/
# build backend on a musl-libc-based distribution
BuildDistr=Alpine
windir=$(shell cd "${WINDIR}"; pwd) windir=$(shell cd "${WINDIR}"; pwd)
wslbridge-backend: wslbridge-source wslbridge-backend: wslbridge-source
@ -124,9 +127,9 @@ wslbridge-backend: wslbridge-source
#uname -m | grep x86_64 #uname -m | grep x86_64
mkdir -p bin mkdir -p bin
# provide dependencies for backend build # provide dependencies for backend build
PATH="$(windir)/Sysnative:${PATH}" cmd /C wsl.exe -u root -d $(BuildDistr) $(shell env | grep http_proxy=) apk add make g++ linux-headers < /dev/null PATH="$(windir)/Sysnative:${PATH}" cmd /C wsl.exe -u root $(BuildDistr) $(shell env | grep http_proxy=) apk add make g++ linux-headers < /dev/null
# invoke backend build # invoke backend build
cd wslbridge2-$(wslbridgever)/src; PATH="$(windir)/Sysnative:${PATH}" cmd /C wsl.exe -d $(BuildDistr) make -f Makefile.backend RELEASE=1 < /dev/null cd wslbridge2-$(wslbridgever)/src; PATH="$(windir)/Sysnative:${PATH}" cmd /C wsl.exe $(BuildDistr) make -f Makefile.backend RELEASE=1 < /dev/null
# extract binaries # extract binaries
cp wslbridge2-$(wslbridgever)/bin/wslbridge2-backend bin/ cp wslbridge2-$(wslbridgever)/bin/wslbridge2-backend bin/