a88d2f35a8
This diff implements part of the release checklist at https://github.com/ooni/probe/issues/1439. The plan is to bless a beta release and use it for further testing on Android devices. Afterward, we need to apply some extra changes to the `cli` (including https://github.com/ooni/probe-cli/pull/314 and https://github.com/ooni/probe-cli/pull/312). Finally, we will bless a full 3.10.0 release.
16 lines
641 B
Bash
Executable File
16 lines
641 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
topdir=$(cd $(dirname $0) && pwd -P)
|
|
set -x
|
|
export PATH=$(go env GOPATH)/bin:$PATH
|
|
go get -u golang.org/x/mobile/cmd/gomobile
|
|
gomobile init
|
|
output=MOBILE/ios/oonimkall.framework
|
|
gomobile bind -target=ios -o $output -ldflags="-s -w" ./pkg/oonimkall
|
|
release=$(git describe --tags || echo $GITHUB_SHA)
|
|
version=$(date -u +%Y.%m.%d-%H%M%S)
|
|
podspecfile=./MOBILE/ios/oonimkall.podspec
|
|
(cd ./MOBILE/ios && rm -f oonimkall.framework.zip && zip -yr oonimkall.framework.zip oonimkall.framework)
|
|
podspectemplate=./MOBILE/template.podspec
|
|
cat $podspectemplate|sed -e "s/@VERSION@/$version/g" -e "s/@RELEASE@/$release/g" > $podspecfile
|