From da6962d995d0388482b6a5fbc92feb837e733222 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Fri, 25 Sep 2026 11:03:29 -0700 Subject: [PATCH] Patch the SvelteKit version in the F-Droid recipe so 1.11.2 reproduces too --- fdroid/metadata/social.flotilla.fdroid.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fdroid/metadata/social.flotilla.fdroid.yml b/fdroid/metadata/social.flotilla.fdroid.yml index 01723a97..6b2a5201 100644 --- a/fdroid/metadata/social.flotilla.fdroid.yml +++ b/fdroid/metadata/social.flotilla.fdroid.yml @@ -32,7 +32,12 @@ Builds: - corepack enable gradle: - fdroid - prebuild: ../../scripts/fdroid/prepare.sh + prebuild: + - cd ../.. + - V='version:{name:process.env.VITE_BUILD_HASH},' + - F=svelte.config.js + - grep -q BUILD_HASH $F || sed -i "/serviceWorker:/i $V" $F + - scripts/fdroid/prepare.sh scanignore: - node_modules build: ../../scripts/fdroid/build.sh @@ -50,6 +55,10 @@ MaintainerNotes: |- buildserver-trixie image (scripts/fdroid/reproduce.sh) and publishes that apk, signed with the distribution key, at Binaries. + Tags before 1.11.3 version the SvelteKit build by build time, which no two builds share, + so prebuild sets it from the commit instead. Later tags do that themselves, and the + patch skips them. + AutoUpdateMode: Version UpdateCheckMode: Tags ^[0-9]+\.[0-9]+\.[0-9]+$ UpdateCheckData: