diff options
author | cyBerta <cyberta@riseup.net> | 2019-10-11 14:33:39 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-10-11 14:33:39 +0200 |
commit | 84f9b697d1417c6308c3a4be9d1c2d01d26a88bf (patch) | |
tree | 6834a01733e7facfccf65b5d56577624dc839e7d /go/install_go.sh | |
parent | 01cb332a9d89d79aafec479e267ae5bd644693f8 (diff) |
move installation of gomobile to install_go.sh
Diffstat (limited to 'go/install_go.sh')
-rwxr-xr-x | go/install_go.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/go/install_go.sh b/go/install_go.sh index 79264b7e..1674753e 100755 --- a/go/install_go.sh +++ b/go/install_go.sh @@ -20,3 +20,17 @@ else mkdir ./golang fi tar -C ./golang -xzf $GO_VERSION.tar.gz + + +export GOPATH=`pwd` +export GO_LANG=`pwd`/golang/go/bin +export GO_COMPILED=`pwd`/bin +PATH="${GO_LANG}:${GO_COMPILED}:${PATH}" + +./golang/go/bin/go get golang.org/x/mobile/cmd/gomobile +./golang/go/bin/go env +echo "getting gomobile..." +./golang/go/bin/go get golang.org/x/mobile/cmd/gomobile +echo "initiating gomobile..." +./bin/gomobile init + |