Fix building issue
This commit is contained in:
parent
2e951497ad
commit
90f1f54a21
8 changed files with 158 additions and 86 deletions
|
|
@ -14,15 +14,21 @@ GOPENPGP_PATH="$CHECKOUT_PATH/gopenpgp"
|
|||
mkdir -p "$OUTPUT_PATH"
|
||||
mkdir -p "$CHECKOUT_PATH"
|
||||
|
||||
go env -w GO111MODULE=auto
|
||||
go get golang.org/x/mobile/cmd/gomobile
|
||||
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||
gomobile init
|
||||
|
||||
git clone --depth 1 --branch "$GOPENPGP_VERSION" https://github.com/mssun/gopenpgp.git "$GOPENPGP_PATH"
|
||||
|
||||
sed -i '' 's/build android/echo "Skipping Android build."/g' "$GOPENPGP_PATH/build.sh"
|
||||
|
||||
(cd "$GOPENPGP_PATH" && ./build.sh)
|
||||
pushd "$GOPENPGP_PATH"
|
||||
mkdir -p dist
|
||||
go mod download github.com/ProtonMail/go-crypto
|
||||
gomobile bind -tags mobile -target ios -iosversion 12.0 -v -x -ldflags="-s -w" -o dist/Gopenpgp.xcframework \
|
||||
github.com/ProtonMail/gopenpgp/v2/crypto \
|
||||
github.com/ProtonMail/gopenpgp/v2/armor \
|
||||
github.com/ProtonMail/gopenpgp/v2/constants \
|
||||
github.com/ProtonMail/gopenpgp/v2/models \
|
||||
github.com/ProtonMail/gopenpgp/v2/subtle github.com/ProtonMail/gopenpgp/v2/helper
|
||||
popd
|
||||
|
||||
cp -r "$GOPENPGP_PATH/dist/Gopenpgp.xcframework" "$OUTPUT_PATH"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue