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.9k stars 1.16k forks source link

Packaging fails when appImage build property is set #793

Open saket opened 3 years ago

saket commented 3 years ago

I'm exploring if I can set --type app-image for modifying images built for my macOS app (docs). Doing this for specifying an app image directory doesn't seem to work:

tasks.withType<AbstractJPackageTask>().all {
  appImage.set(file("foo"))
}

This fails with a jpackage error:

> External tool execution failed:
  * Command: [/Users/saket/.sdkman/candidates/java/16.0.1.j9-adpt/bin/jpackage, @/Users/saket/projects/teleport/desktop/build/compose/tmp/packageDmg.args.txt]
  * Working dir: []
  * Exit code: 1
  * Standard output log: .../build/compose/logs/packageDmg/jpackage-2021-06-17-17-41-19-out.txt
  * Error log: .../build/compose/logs/packageDmg/jpackage-2021-06-17-17-41-19-err.txt

The error log file contains this message:

Error: Option [--java-options] is not valid with type [dmg]

What am I doing wrong?

okushnikov commented 2 weeks ago

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