Nagram/bin/libs/v2ray/init.sh
2021-03-05 12:36:01 +08:00

12 lines
293 B
Bash
Executable File

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