Nagram/bin/libs/v2ray/init.sh

12 lines
293 B
Bash
Raw Normal View History

2021-03-01 08:02:36 +00:00
#!/usr/bin/env bash
source "bin/init/env.sh"
export GO111MOUDLE=on
export PATH="$PATH:$(go env GOPATH)/bin"
2021-03-05 04:10:37 +00:00
cd $PROJECT
[ -f v2ray/go.mod ] || git submodule update --init v2ray
2021-03-01 08:02:36 +00:00
cd v2ray
git reset --hard && git clean -fdx
2021-03-05 04:10:37 +00:00
go mod download -x && go get -v golang.org/x/mobile/cmd/... || exit 1