feat(ios): adapt build to post bintray world (#309)
Part of https://github.com/ooni/probe/issues/1437
This commit is contained in:
parent
f5d0a1fa1a
commit
85755e35f5
4 changed files with 11 additions and 4 deletions
|
|
@ -7,3 +7,9 @@ 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)
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue