Skip to content

Commit

Permalink
make sure we publish to rolling
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Oct 16, 2023
1 parent 038726e commit 7222f76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MOBILE/ios/createpodspecs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ set -euo pipefail
__version=$(date -u +%Y.%m.%d-%H%M%S)
__release=$(git describe --tags || echo '0.0.0-dev')

# determine whether we're publishing to a release or to rolling
#
# when publishing to rolling the __release variable is like: 'v3.19.0-alpha-27-g4678578b'
if ! [[ $__release =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-z]+)$ ]]; then
__release=rolling
fi

for name in libcrypto libevent libssl libtor libz oonimkall; do
cat ./MOBILE/ios/${name}-template.podspec | sed -e "s/@VERSION@/$__version/g" \
-e "s/@RELEASE@/$__release/g" >./MOBILE/ios/${name}.podspec
Expand Down

0 comments on commit 7222f76

Please sign in to comment.