Merge pull request #3741 from element-hq/feature/bma/releaseImprovement
Release script improvement
This commit is contained in:
commit
efb35fb88b
2 changed files with 17 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ import argparse
|
||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
# Run `pip3 install requests` if not installed yet
|
# Run `pip3 install requests --break-system-packages` if not installed yet
|
||||||
import requests
|
import requests
|
||||||
# Run `pip3 install re` if not installed yet
|
# Run `pip3 install re` if not installed yet
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -185,11 +185,24 @@ targetPath="./tmp/Element/${version}"
|
||||||
printf "\n================================================================================\n"
|
printf "\n================================================================================\n"
|
||||||
printf "Downloading the artifacts...\n"
|
printf "Downloading the artifacts...\n"
|
||||||
|
|
||||||
python3 ./tools/github/download_all_github_artifacts.py \
|
ret=1
|
||||||
|
|
||||||
|
while [[ $ret -ne 0 ]]; do
|
||||||
|
python3 ./tools/github/download_all_github_artifacts.py \
|
||||||
--token "${gitHubToken}" \
|
--token "${gitHubToken}" \
|
||||||
--runUrl "${runUrl}" \
|
--runUrl "${runUrl}" \
|
||||||
--directory "${targetPath}"
|
--directory "${targetPath}"
|
||||||
|
|
||||||
|
ret=$?
|
||||||
|
if [[ $ret -ne 0 ]]; then
|
||||||
|
read -p "Error while downloading the artifacts. You may want to fix the issue and retry. Retry (yes/no) default to yes? " doRetry
|
||||||
|
doRetry=${doRetry:-yes}
|
||||||
|
if [ "${doRetry}" == "no" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
printf "\n================================================================================\n"
|
printf "\n================================================================================\n"
|
||||||
printf "Unzipping the F-Droid artifact...\n"
|
printf "Unzipping the F-Droid artifact...\n"
|
||||||
|
|
||||||
|
|
@ -312,8 +325,8 @@ printf "\n======================================================================
|
||||||
printf "The file ${signedBundlePath} has been signed and can be uploaded to the PlayStore!\n"
|
printf "The file ${signedBundlePath} has been signed and can be uploaded to the PlayStore!\n"
|
||||||
|
|
||||||
printf "\n================================================================================\n"
|
printf "\n================================================================================\n"
|
||||||
read -p "Do you want to build the APKs from the app bundle? You need to do this step if you want to install the application to your device. (yes/no) default to yes " doBuildApks
|
read -p "Do you want to build the APKs from the app bundle? You need to do this step if you want to install the application to your device. (yes/no) default to no " doBuildApks
|
||||||
doBuildApks=${doBuildApks:-yes}
|
doBuildApks=${doBuildApks:-no}
|
||||||
|
|
||||||
if [ "${doBuildApks}" == "yes" ]; then
|
if [ "${doBuildApks}" == "yes" ]; then
|
||||||
printf "Building apks...\n"
|
printf "Building apks...\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue