Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b6c7fd3 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix: Update create-json-files.sh

replace last usage of $STABLE_APK & $DEV_APK by $OFFICIAL_APK & $COMMUNITY_APK 
parent a53d0666
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -93,12 +93,12 @@ echo "File size for - $OFFICIAL_APK - $apk_size_official"
# Generate json files ====================

if [[ "$BLOCKED_DEV" != "true" ]]; then
  generateJsonFile community.json "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$DEV_APK?job=generate-apks"
  generateJsonFile community.json "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$COMMUNITY_APK?job=generate-apks"
  editJson community.json "size" "$apk_size_dev"
fi

if [[ "$BLOCKED_STABLE" != "true" ]]; then
  generateJsonFile official.json "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$STABLE_APK?job=generate-apks"
  generateJsonFile official.json "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$OFFICIAL_APK?job=generate-apks"
  editJson official.json "size" "$apk_size_stable"
fi