Taewan-P / gpt_mobile

Chat app for Android that supports answers from multiple LLMs at once. Designed with Material3 & Compose.
GNU General Public License v3.0
53 stars 7 forks source link

F-Droid can't build #16

Closed licaon-kter closed 1 week ago

licaon-kter commented 1 week ago

ref: https://gitlab.com/fdroid/fdroiddata/-/jobs/7274011735#L509

fix: https://github.com/mikepenz/AboutLibraries/issues/784#issuecomment-1205501876

/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/2b9a224936f9c920b0c674c0c2a3cdd026bc520a

Taewan-P commented 1 week ago

@licaon-kter Sorry! Just fixed at #17 and released a new version: v0.4.1!

Taewan-P commented 1 week ago

Should be working by now. The local build hash and CI build hash matches

licaon-kter commented 1 week ago
2024-07-05 15:33:27,068 ERROR: Could not build app dev.chungjungsoo.gptmobile: compared built binary to supplied reference binary but failed
==== detail begin ====
verification of APK with copied signature failed
Comparing reference APK to APK with copied signature...
Unexpected diff output:
==== detail end ====

this reminds me of: https://gitlab.com/fdroid/fdroiddata/-/issues/3299#note_1985568674

looking at https://github.com/Taewan-P/gpt_mobile/blob/v0.4.1/.github/workflows/release-build.yml#L9

and confirmed by https://github.com/actions/runner-images/commit/d31e0a18cbe4583142e746fc692570b706db0192#diff-46b808a5c93af22ed67b614d1f4070b549bebe5f8b13714e72f134ca58b1965eR248

you are using build-tools 35 to sign, so to fix reproducibility make this: https://github.com/Taewan-P/gpt_mobile/blob/v0.4.1/.github/workflows/release-build.yml#L52 say apksigner sign --alignment-preserved true ...

Taewan-P commented 1 week ago

@licaon-kter How about now? I recreated the v0.4.1 tag with the updated workflow, and the APK from it (job)

linsui commented 1 week ago

It works, thanks!