[反向代理]实验性添加TOA支持

This commit is contained in:
刘祥超
2020-12-03 10:17:28 +08:00
parent 49d3c1b586
commit 60e971e79b
15 changed files with 228 additions and 18 deletions

View File

@@ -40,6 +40,12 @@ function build() {
cp -R $ROOT/pages $DIST/
cp -R $ROOT/resources $DIST/
# we support TOA on linux/amd64 only
if [ $OS == "linux" -a $ARCH == "amd64" ]
then
cp -R $ROOT/edge-toa $DIST
fi
echo "building ..."
env GOOS=${OS} GOARCH=${ARCH} go build -o $DIST/bin/${NAME} -ldflags="-s -w" $ROOT/../cmd/edge-node/main.go

1
build/edge-toa/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
edge-toa