[skip ci] Bump up minimum extensions check
This commit is contained in:
parent
005e411fed
commit
961556ea6c
|
@ -31,16 +31,16 @@ for APK in ${APKS[@]}; do
|
||||||
unzip -p $APK $ICON > icon/${FILENAME%.*}.png
|
unzip -p $APK $ICON > icon/${FILENAME%.*}.png
|
||||||
|
|
||||||
SOURCE_INFO=$(jq ".[\"$PKGNAME\"]" < ../output.json)
|
SOURCE_INFO=$(jq ".[\"$PKGNAME\"]" < ../output.json)
|
||||||
|
|
||||||
# Fixes the language code without needing to update the packages.
|
# Fixes the language code without needing to update the packages.
|
||||||
SOURCE_LEN=$(echo $SOURCE_INFO | jq length)
|
SOURCE_LEN=$(echo $SOURCE_INFO | jq length)
|
||||||
|
|
||||||
if [ $SOURCE_LEN = "1" ]; then
|
if [ $SOURCE_LEN = "1" ]; then
|
||||||
SOURCE_LANG=$(echo $SOURCE_INFO | jq -r '.[0].lang')
|
SOURCE_LANG=$(echo $SOURCE_INFO | jq -r '.[0].lang')
|
||||||
|
|
||||||
if [ $SOURCE_LANG != $LANG ] && [ $SOURCE_LANG != "all" ] && [ $SOURCE_LANG != "other" ] && [ $LANG != "all" ] && [ $LANG != "other" ]; then
|
if [ $SOURCE_LANG != $LANG ] && [ $SOURCE_LANG != "all" ] && [ $SOURCE_LANG != "other" ] && [ $LANG != "all" ] && [ $LANG != "other" ]; then
|
||||||
LANG=$SOURCE_LANG
|
LANG=$SOURCE_LANG
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
jq -n \
|
jq -n \
|
||||||
|
|
|
@ -9,7 +9,7 @@ cp -R ~/apk-artifacts/ $PWD
|
||||||
APKS=( **/*".apk" )
|
APKS=( **/*".apk" )
|
||||||
|
|
||||||
# Fail if too little extensions seem to have been built
|
# Fail if too little extensions seem to have been built
|
||||||
if [ "${#APKS[@]}" -le "1" ]; then
|
if [ "${#APKS[@]}" -le "100" ]; then
|
||||||
echo "Insufficient amount of APKs found. Please check the project configuration."
|
echo "Insufficient amount of APKs found. Please check the project configuration."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue