Add missing jpackage options#5227
Add missing jpackage options#5227StefanLobbenmeier wants to merge 7 commits intoJetBrains:masterfrom
Conversation
...ns/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/PlatformSettings.kt
Outdated
Show resolved
Hide resolved
|
Not tested yet, only made sure to copy the values from documentation. Not sure how I can make a snapshot build from this to test in a sample projects. If there is an easy way to publish this as snapshot I have a sample repo to test these changes |
|
Please add a reference to https://youtrack.jetbrains.com/issue/CMP-2236 in the PR description |
|
I haven't used |
...ns/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/PlatformSettings.kt
Outdated
Show resolved
Hide resolved
|
I agree, the documentation is bad there. I just spun up an ubuntu docker container to check this. I could confirm that the option accepts parameters and those affect the output .deb: This is the .deb I got with this jpackage command: While the .deb without dependencies does not have this dependency ( Somewhat incomplete history of commands in case you want to reproduce (missing apt install openjdk tmux, but this will depend on the image) |
|
Just some more tests, you can add multiple dependencies separated by comma:
And just putting it there without arguments does not add any binaries:
But this only works when its the last argument, otherwise it consumes the next one: |
|
One more evidence that behaviour is different from documentation - this is the definition of the argument in code, its a string argument: |
…ike --linux-package-deps, so accept any string for now
|
could this be merged? Edit: I think |
|
Yeah would be nice to get this merged soon 😄 I guess we are waiting for @igordmn review to complete? |
Describe proposed changes and the issue being fixed
Adds additional jpackage options, introduced in jdk 17 and 21:
Fixes
Testing
Describe how you tested your changes. If possible and needed:
This should be tested by QA
Release Notes
Features - Desktop
jpackageoptions--win-shortcut-prompt,--win-update-url,--linux-package-depsand--mac-dmg-content