build: the F-Droid repository shows the app's icon
All checks were successful
CI / check (push) Successful in 5s
CI / deploy (push) Successful in 15s

fdroid finds a launcher icon only under res/<folder>/<name>.png, and
release APKs shorten the resources' paths (res/9w.png; fdroidserver
issue 885), so the app showed no icon in the F-Droid app.
tool/fdroid_repo.sh now gives it the snap's icon in the metadata
(metadata/app.halkyon.learn/en-US/icon.png), as the repository's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-06 14:22:24 +02:00
commit a1e11068e1
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -83,6 +83,11 @@ cp -r tool/release/fdroid/. "$working/"
# fdroid refuses a config.yml others can read.
chmod 600 "$working/config.yml"
cp snap/gui/halkyon-learn.png "$working/halkyon.png"
# The app's own icon in the F-Droid app, the same: fdroid can't find the launcher
# icon in a release APK, whose build shortens the resources' paths (res/9w.png
# rather than res/mipmap-hdpi/ic_launcher.png; fdroidserver issue 885).
mkdir -p "$working/metadata/app.halkyon.learn/en-US"
cp snap/gui/halkyon-learn.png "$working/metadata/app.halkyon.learn/en-US/icon.png"
if [ -n "$apk" ]; then
[ -f "$apk" ] || fail "No APK at $apk."
cp "$apk" "$working/repo/"