This commit is contained in:
wenyifan 2023-12-28 17:34:43 +08:00
parent dab45deac9
commit d675782d29
2 changed files with 7 additions and 2 deletions

View File

@ -16,6 +16,11 @@ go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost
export GOARCH=386 export GOARCH=386
go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost_x86 go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost_x86
echo MacOS
export GOOS=darwin
export GOARCH=amd64
go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost_osx
echo Android echo Android
export ANDROID_NDK_ROOT=$PWD/../../../android-ndk-r23b export ANDROID_NDK_ROOT=$PWD/../../../android-ndk-r23b
export GOOS=android export GOOS=android

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"fmt"
"gopkg.in/yaml.v2"
"encoding/json" "encoding/json"
"fmt"
"gopkg.in/yaml.v3"
"net/http" "net/http"
"os" "os"
"strings" "strings"