undo create-repo changes
This commit is contained in:
parent
d480d6b3df
commit
bbe2ff2478
16
.github/scripts/create-repo.sh
vendored
16
.github/scripts/create-repo.sh
vendored
@ -30,19 +30,6 @@ for APK in ${APKS[@]}; do
|
|||||||
ICON=$(echo "$BADGING" | grep -Po "application-icon-320.*'\K[^']+")
|
ICON=$(echo "$BADGING" | grep -Po "application-icon-320.*'\K[^']+")
|
||||||
unzip -p $APK $ICON > icon/${FILENAME%.*}.png
|
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 \
|
jq -n \
|
||||||
--arg name "$LABEL" \
|
--arg name "$LABEL" \
|
||||||
--arg pkg "$PKGNAME" \
|
--arg pkg "$PKGNAME" \
|
||||||
@ -58,4 +45,7 @@ done | jq -sr '[.[]]' > index.json
|
|||||||
# Alternate minified copy
|
# Alternate minified copy
|
||||||
jq -c '.' < index.json > index.min.json
|
jq -c '.' < index.json > index.min.json
|
||||||
|
|
||||||
|
# Alternate gzipped copy
|
||||||
|
gzip -c index.json > index.json.gz
|
||||||
|
|
||||||
cat index.json
|
cat index.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user