-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
14 lines (13 loc) · 618 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export CGO_ENABLED=0
export GOOS=windows
if [ "$GOOS" == "windows" ]
then
suf=".exe"
fi
# wget https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db -O geo/geosite.dat
# wget https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db -O geo/geoip.dat
uni="uniproxy"
cd cmd/$uni || exit
go build -o ../../uniproxy$suf -ldflags '-s -w' -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}" -tags "with_quic with_gvisor with_grpc with_utls"
cd ../reset || exit
go build -o ../../reset$suf -ldflags '-s -w' -gcflags="all=-trimpath=${PWD}" -asmflags="all=-trimpath=${PWD}"