compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Packaging fails when appImage build property is set

Open saket opened this issue 4 years ago • 1 comments

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?

saket avatar Jun 17 '21 21:06 saket

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

okushnikov avatar Aug 26 '24 17:08 okushnikov