From 08c99ded3842d8da0c17b588a37d9f46331a87cf Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 16 Jul 2023 14:55:51 -0400 Subject: [PATCH] Repo: use package name for icon filenames to avoid unnecessary file changes --- .github/scripts/create-repo.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/create-repo.sh b/.github/scripts/create-repo.sh index ca905c2ff..9bb13b340 100755 --- a/.github/scripts/create-repo.sh +++ b/.github/scripts/create-repo.sh @@ -30,7 +30,10 @@ for APK in ${APKS[@]}; do LANG=$(echo $APK | grep -Po "tachiyomi-\K[^\.]+") ICON=$(echo "$BADGING" | grep -Po "application-icon-320.*'\K[^']+") - unzip -p $APK $ICON > icon/${FILENAME%.*}.png + unzip -p $APK $ICON > icon/${PKGNAME}.png + + # TODO: legacy icons; remove after a while + cp icon/${PKGNAME}.png icon/${FILENAME%.*}.png SOURCE_INFO=$(jq ".[\"$PKGNAME\"]" < ../output.json)