Automated build of GopenPGP

This commit is contained in:
Moritz Kuntze 2019-06-06 18:07:39 +02:00 committed by Mingshen Sun
parent 96f7c1960d
commit 083c37f4e7
24 changed files with 36 additions and 361 deletions

28
gopenpgp_build.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/bash
OLDGOPATH=$GOPATH
export GOPATH=$(pwd)/go
go get -u golang.org/x/mobile/cmd/gomobile
go install golang.org/x/mobile/cmd/gobind
go get golang.org/x/mobile
go get -u github.com/ProtonMail/gopenpgp
cd $GOPATH/src/github.com/ProtonMail/gopenpgp
git fetch && git fetch --tags
git checkout v0
GO111MODULE=on go mod vendor
git checkout v1.0.0
cd $GOPATH
mkdir dist
$GOPATH/bin/gomobile bind -target ios -o dist/Gopenpgpwrapper.framework gopenpgpwrapper
export GOPATH=$OLDGOPATH