diff --git a/.github/scripts/create-repo.sh b/.github/scripts/create-repo.sh index 677a7ae5c..d3ea0259e 100755 --- a/.github/scripts/create-repo.sh +++ b/.github/scripts/create-repo.sh @@ -30,19 +30,6 @@ for APK in ${APKS[@]}; do ICON=$(echo "$BADGING" | grep -Po "application-icon-320.*'\K[^']+") unzip -p $APK $ICON > icon/${FILENAME%.*}.png - SOURCE_INFO=$(jq ".[\"$PKGNAME\"]" < ../output.json) - - # Fixes the language code without needing to update the packages. - SOURCE_LEN=$(echo $SOURCE_INFO | jq length) - - if [ $SOURCE_LEN = "1" ]; then - SOURCE_LANG=$(echo $SOURCE_INFO | jq -r '.[0].lang') - - if [ $SOURCE_LANG != $LANG ] && [ $SOURCE_LANG != "all" ] && [ $SOURCE_LANG != "other" ] && [ $LANG != "all" ] && [ $LANG != "other" ]; then - LANG=$SOURCE_LANG - fi - fi - jq -n \ --arg name "$LABEL" \ --arg pkg "$PKGNAME" \ @@ -58,4 +45,7 @@ done | jq -sr '[.[]]' > index.json # Alternate minified copy jq -c '.' < index.json > index.min.json +# Alternate gzipped copy +gzip -c index.json > index.json.gz + cat index.json