diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/PlatformSettings.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/PlatformSettings.kt index d70ca65adf..0f3f2fb404 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/PlatformSettings.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/PlatformSettings.kt @@ -100,6 +100,7 @@ abstract class WindowsPlatformSettings : AbstractPlatformSettings() { var dirChooser: Boolean = true var perUserInstall: Boolean = false var shortcut: Boolean = false + var shortcutPrompt: Boolean = false var menu: Boolean = false get() = field || menuGroup != null var menuGroup: String? = null diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureJvmApplication.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureJvmApplication.kt index 83d51089ef..2bbc87b9e4 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureJvmApplication.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureJvmApplication.kt @@ -384,6 +384,7 @@ internal fun JvmApplicationContext.configurePlatformSettings( packageTask.winDirChooser.set(provider { win.dirChooser }) packageTask.winPerUserInstall.set(provider { win.perUserInstall }) packageTask.winShortcut.set(provider { win.shortcut }) + packageTask.winShortcutPrompt.set(provider { win.shortcutPrompt }) packageTask.winMenu.set(provider { win.menu }) packageTask.winMenuGroup.set(provider { win.menuGroup }) packageTask.winUpgradeUuid.set(provider { win.upgradeUuid }) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt index 20c3926cd9..b473c266ea 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt @@ -216,6 +216,10 @@ abstract class AbstractJPackageTask @Inject constructor( @get:Optional val winShortcut: Property = objects.nullableProperty() + @get:Input + @get:Optional + val winShortcutPrompt: Property = objects.nullableProperty() + @get:Input @get:Optional val winMenu: Property = objects.nullableProperty() @@ -449,6 +453,7 @@ abstract class AbstractJPackageTask @Inject constructor( cliArg("--win-dir-chooser", winDirChooser) cliArg("--win-per-user-install", winPerUserInstall) cliArg("--win-shortcut", winShortcut) + cliArg("--win-shortcut-prompt", winShortcutPrompt) cliArg("--win-menu", winMenu) cliArg("--win-menu-group", winMenuGroup) cliArg("--win-upgrade-uuid", winUpgradeUuid)