mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Clean unnecessary code
This commit is contained in:
parent
d6fc9691ba
commit
68a5e66a4b
|
@ -2,6 +2,9 @@
|
|||
// index.js
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var FILE = require("lib/file");
|
||||
var OldBrowser = require("lib/oldbrowser");
|
||||
|
||||
var token;
|
||||
if (FILE.fileExists("token.txt")) {
|
||||
token = FILE.readFile("token.txt", "utf-8");
|
||||
|
|
3
bootstrap.bat
Normal file
3
bootstrap.bat
Normal file
|
@ -0,0 +1,3 @@
|
|||
@echo off
|
||||
pushd %~dp0
|
||||
cscript app.js bootstrap
|
22
build.bat
22
build.bat
|
@ -2,7 +2,7 @@
|
|||
|
||||
REM set required build-tools
|
||||
set PATH=%WINDIR%\System32
|
||||
set PATH=%PATH%;%CD%\packages\go1.14.6.windows-amd64\go\bin
|
||||
REM 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
|
||||
|
@ -11,29 +11,13 @@ REM check a PATH variable
|
|||
echo %PATH%
|
||||
|
||||
REM check a GOPATH variable
|
||||
echo %GOPATH%
|
||||
REM echo %GOPATH%
|
||||
|
||||
REM set destination folder
|
||||
set BINPATH=%CD%\bin
|
||||
rmdir %BINPATH% /s /q
|
||||
mkdir %BINPATH%
|
||||
|
||||
REM complie shadow-may.19.2020-modified
|
||||
REM pushd %CD%\packages\shadow-may.19.2020-modified
|
||||
REM windres -o main.syso main.rc
|
||||
REM go build
|
||||
REM copy %CD%\shadow.exe %BINPATH%\shadow.exe
|
||||
REM popd
|
||||
|
||||
go get -v -ldflags="-s -w" -trimpath github.com/imgk/shadow/executive/shadow
|
||||
|
||||
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
|
||||
REM copy %CD%\packages\tun2socks-windows-4.0-amd64.exe %BINPATH%\tun2socks.exe
|
||||
REM copy %CD%\packages\tap-windows-9.24.2-I601-Win10.exe %BINPATH%\tap-windows-9.24.2-I601-Win10.exe
|
||||
copy %CD%\packages\build\go\bin\shadow.exe %BINPATH%\shadow.exe
|
||||
REM INSERT YOUR CODE
|
||||
|
||||
echo done
|
||||
|
|
Loading…
Reference in New Issue
Block a user