diff options
author | cyberta <cyberta@riseup.net> | 2021-11-12 00:46:35 +0000 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2021-11-12 00:46:35 +0000 |
commit | c5d722f555b952407dade3abb1ffd537e6747317 (patch) | |
tree | a9ebb8b33438589a33ed9ce54ade50371c9fe147 /go/install_go.sh | |
parent | 571c0479f7400e56cfdb27408160d8a816cc8610 (diff) | |
parent | 8aeb4791b6e024de9aa9c61b574d8c798a3c0a2c (diff) |
Merge branch 'tor-snowflake' into 'master'
tor-over-snowflake
Closes #9045
See merge request leap/bitmask_android!138
Diffstat (limited to 'go/install_go.sh')
-rwxr-xr-x | go/install_go.sh | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/go/install_go.sh b/go/install_go.sh deleted file mode 100755 index 59aab4f0..00000000 --- a/go/install_go.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -GO_VERSION=go1.14.2.linux-amd64 -EXPECTED_FP=6272d6e940ecb71ea5636ddb5fab3933e087c1356173c61f4a803895e947ebb3 - -if [[ $(ls -A ${GO_VERSION}.tar.gz) ]] -then - echo "reusing downloaded golang bundle" -else - echo "installing go lang bundle ${GO_VERSION}.tar.gz" - curl -o $GO_VERSION.tar.gz https://dl.google.com/go/$GO_VERSION.tar.gz - ACTUAL_FP=`sha256sum $GO_VERSION.tar.gz | cut -d " " -f1` - if [[ ! $ACTUAL_FP == $EXPECTED_FP ]] - then - echo "Download seems to be corrupted. Cancelling build." - return 1 - fi -fi - -if [[ -d ./golang ]] -then - if [[ $(ls -A ./golang/*) ]] - then - rm -r ./golang/* - fi -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 -export 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 - |