JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.87k stars 1.15k forks source link

only DEFLATED entries can have EXT descriptor on packageDmg #4033

Open cesargasca opened 9 months ago

cesargasca commented 9 months ago

When running packageDmg, to create dmg package in a Macbook pro I always get:

Execution failed for task ':createDistributable'. java.util.zip.ZipException: only DEFLATED entries can have EXT descriptor

this only happens when attempting to sign the app just after input the password. (Also reproducible with createDistributable)

Affected platforms

To Reproduce

  1. Set under nativeDistributions in build.gradle.kts

    macOS {
                dmgPackageVersion = "1.2.1"
    
                dmgPackageBuildVersion = "1.2.1"
    
                bundleID = "com.myapp.app"
                signing {
                    sign.set(true)
                    identity.set("Cesar Gasca")
                }
            }
  2. Execute 'packageDmg'

Expected behavior Create dmg package under build/compose

dima-avdeev-jb commented 9 months ago

To reproduce we need to generate Desktop app in wizard https://terrakok.github.io/Compose-Multiplatform-Wizard/

Correct?

cesargasca commented 8 months ago

The Deskotp app was generated from IntelliJ, I created a project to reproduce the issue https://github.com/cesargasca/compose-reproduced-error After some debugging I noticed it is due to a jar called apksigner.jar and only happens when signing is set for macOS.

Please let me know if something else is needed

okushnikov commented 1 week ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.