[go: up one dir, main page]

Skip to content

fdroid publish - clean up on fail

Went to a pipeline job: https://gitlab.com/linsui/fdroiddata/-/jobs/3581454703/artifacts/browse/tmp/

Pressed right click - copy link on com.mattermost.rnbeta_449.apk

Go to fdroiddata/unsigned, wget paste link

Run fdroid publish --verbose

Exception in thread "main" com.android.apksig.apk.ApkFormatException: Malformed APK: not a ZIP archive
        at com.android.apksig.ApkSigner.sign(ApkSigner.java:235)
        at com.android.apksig.ApkSigner.sign(ApkSigner.java:214)
        at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:356)
        at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:85)
Caused by: com.android.apksig.zip.ZipFormatException: ZIP End of Central Directory record not found
        at com.android.apksig.apk.ApkUtilsLite.findZipSections(ApkUtilsLite.java:49)
        at com.android.apksig.apk.ApkUtils.findZipSections(ApkUtils.java:60)
        at com.android.apksig.ApkSigner.sign(ApkSigner.java:233)
        ... 3 more
Traceback (most recent call last):
  File "/home/fdroid/fdroidserver/fdroid", line 22, in <module>
    fdroidserver.__main__.main()
  File "/home/fdroid/fdroidserver/fdroidserver/__main__.py", line 213, in main
    mod.main()
  File "/home/fdroid/fdroidserver/fdroidserver/publish.py", line 431, in main
    common.sign_apk(apkfile, signed_apk_path, keyalias)
  File "/home/fdroid/fdroidserver/fdroidserver/common.py", line 3362, in sign_apk
    raise BuildException(_("Failed to sign application"), p.output)
fdroidserver.exception.BuildException: Failed to sign application

Ah, silly me...

I need to click on com.mattermost.rnbeta_449.apk to go to https://gitlab.com/linsui/fdroiddata/-/jobs/3581454703/artifacts/file/tmp/com.mattermost.rnbeta_449.apk then copy that link to the apk

Let me retry, unsigned, rm bad apk, wget good link -> 113Mb ok

Run fdroid update --create-metadata --verbose

Traceback (most recent call last):
  File "/home/fdroid/fdroidserver/fdroid", line 22, in <module>
    fdroidserver.__main__.main()
  File "/home/fdroid/fdroidserver/fdroidserver/__main__.py", line 213, in main
    mod.main()
  File "/home/fdroid/fdroidserver/fdroidserver/publish.py", line 425, in main
    raise BuildException("Refusing to sign '{0}' file exists in both "
fdroidserver.exception.BuildException: Refusing to sign 'com.mattermost.rnbeta_449.apk' file exists in both unsigned and repo folder.

Hmm, ~/fdroiddata/$ ls -la repo/com.matter*

total 88
-rw-r--r-- 1 fdroid fdroid 0 ian 11 08:58 com.mattermost.rnbeta_449.apk

...oops empty file

Edited by Licaon_Kter
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information