2021-02-02 12:05:47 +01:00
|
|
|
#!/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
|
2021-02-03 13:51:15 +01:00
|
|
|
gomobile bind -target=ios -o $output -ldflags="-s -w" ./pkg/oonimkall
|
2021-04-28 09:34:14 +02:00
|
|
|
release=$(git describe --tags || echo $GITHUB_SHA)
|
2021-04-08 17:00:51 +02:00
|
|
|
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
|