Skip to content

Commit 51330c3

Browse files
committed
Upgrade gopenpgp to v2.6.0
1 parent 6bc066d commit 51330c3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

scripts/gopenpgp_build.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euox pipefail
44

5-
GOPENPGP_VERSION="passforios"
5+
GOPENPGP_VERSION="v2.6.0-passforios"
66

77
export GOPATH="$(pwd)/go"
88
export PATH="$PATH:$GOPATH/bin"
@@ -14,20 +14,23 @@ GOPENPGP_PATH="$CHECKOUT_PATH/gopenpgp"
1414
mkdir -p "$OUTPUT_PATH"
1515
mkdir -p "$CHECKOUT_PATH"
1616

17-
go install golang.org/x/mobile/cmd/gomobile@latest
18-
gomobile init
19-
2017
git clone --depth 1 --branch "$GOPENPGP_VERSION" https://github.com/mssun/gopenpgp.git "$GOPENPGP_PATH"
2118

2219
pushd "$GOPENPGP_PATH"
2320
mkdir -p dist
21+
go get golang.org/x/mobile/cmd/gomobile@latest
22+
go get golang.org/x/mobile/cmd/gobind@latest
23+
go build golang.org/x/mobile/cmd/gomobile
24+
go build golang.org/x/mobile/cmd/gobind
2425
go mod download github.com/ProtonMail/go-crypto
25-
gomobile bind -tags mobile -target ios -iosversion 12.0 -v -x -ldflags="-s -w" -o dist/Gopenpgp.xcframework \
26+
gomobile init
27+
gomobile bind -tags mobile -target ios -iosversion 13.0 -v -x -ldflags="-s -w" -o dist/Gopenpgp.xcframework \
2628
github.com/ProtonMail/gopenpgp/v2/crypto \
2729
github.com/ProtonMail/gopenpgp/v2/armor \
2830
github.com/ProtonMail/gopenpgp/v2/constants \
2931
github.com/ProtonMail/gopenpgp/v2/models \
30-
github.com/ProtonMail/gopenpgp/v2/subtle github.com/ProtonMail/gopenpgp/v2/helper
32+
github.com/ProtonMail/gopenpgp/v2/subtle \
33+
github.com/ProtonMail/gopenpgp/v2/helper
3134
popd
3235

3336
cp -r "$GOPENPGP_PATH/dist/Gopenpgp.xcframework" "$OUTPUT_PATH"

0 commit comments

Comments
 (0)