welsonjs/build.bat

37 lines
1.2 KiB
Batchfile
Raw Normal View History

2020-08-03 23:42:17 +00:00
@echo off
REM set required build-tools
set PATH=%WINDIR%\System32
set PATH=%PATH%;%CD%\packages\go1.14.6.windows-amd64\go\bin
set PATH=%PATH%;%CD%\packages\git-2.28.0-64-bit\bin
set PATH=%PATH%;%CD%\packages\winlibs-x86_64-posix-seh-gcc-10.2.0-llvm-10.0.0-mingw-w64-7.0.0-r2\mingw64\bin
set GOPATH=%CD%\packages\build\go
REM check a PATH variable
echo %PATH%
REM check a GOPATH variable
echo %GOPATH%
REM set destination folder
set BINPATH=%CD%\bin
rmdir %BINPATH% /s /q
mkdir %BINPATH%
2020-08-04 10:38:21 +00:00
REM complie shadow-may.19.2020-modified
pushd %CD%\packages\shadow-may.19.2020-modified
windres -o main.syso main.rc
go build
copy %CD%\shadow.exe %BINPATH%\shadow.exe
popd
2020-08-03 23:42:17 +00:00
REM copy required files
copy %CD%\packages\shadowsocks-libev-mingw-x86_64\ss-local.exe %BINPATH%\ss-local.exe
copy %CD%\packages\shadowsocks-libev-mingw-x86_64\*.dll %BINPATH%\
copy %CD%\packages\WinDivert-2.2.0-A\x64\WinDivert.dll %BINPATH%\WinDivert.dll
copy %CD%\packages\WinDivert-2.2.0-A\x64\WinDivert64.sys %BINPATH%\WinDivert64.sys
copy %CD%\packages\tun2socks-windows-4.0-amd64.exe %BINPATH%\tun2socks.exe
copy %CD%\packages\tap-windows-9.24.2-I601-Win10.exe %BINPATH%\tap-windows-9.24.2-I601-Win10.exe
echo done