From 7222f760558dec75c907c0d5f30bc3821c7944fa Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Mon, 16 Oct 2023 22:26:38 +0200 Subject: [PATCH] make sure we publish to rolling --- MOBILE/ios/createpodspecs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MOBILE/ios/createpodspecs b/MOBILE/ios/createpodspecs index 7c38a8ec83..bd5079e54c 100755 --- a/MOBILE/ios/createpodspecs +++ b/MOBILE/ios/createpodspecs @@ -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