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 b26cf12d05..764570e6d1 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 @@ -579,8 +579,8 @@ abstract class AbstractJPackageTask @Inject constructor( val packageVersion = packageVersion.get()!! plist[PlistKeys.CFBundleShortVersionString] = packageVersion // If building for the App Store, use "utilities" as default just like jpackage. - val category = macAppCategory.orNull ?: (if (macAppStore.orNull == true) "utilities" else null) - plist[PlistKeys.LSApplicationCategoryType] = category?.let { "public.app-category.$it" } ?: "Unknown" + val category = macAppCategory.orNull ?: (if (macAppStore.orNull == true) "public.app-category.utilities" else null) + plist[PlistKeys.LSApplicationCategoryType] = category ?: "Unknown" val packageBuildVersion = packageBuildVersion.orNull ?: packageVersion plist[PlistKeys.CFBundleVersion] = packageBuildVersion val year = Calendar.getInstance().get(Calendar.YEAR) diff --git a/tutorials/Native_distributions_and_local_execution/README.md b/tutorials/Native_distributions_and_local_execution/README.md index b7c8cd2253..b62a6d4fbc 100755 --- a/tutorials/Native_distributions_and_local_execution/README.md +++ b/tutorials/Native_distributions_and_local_execution/README.md @@ -447,7 +447,7 @@ The following platform-specific options are available for details; * `appStore = true` — build and sign for the Apple App Store. Requires at least JDK 17; * `appCategory` — category of the app for the Apple App Store. - Default value is `utilities` when building for the App Store, `Unknown` otherwise. + Default value is `public.app-category.utilities` when building for the App Store, `Unknown` otherwise. See [LSApplicationCategoryType](https://developer.apple.com/documentation/bundleresources/information_property_list/lsapplicationcategorytype) for a list of valid categories; * `entitlementsFile.set(File("PATH_TO_ENTITLEMENTS"))` — a path to file containing entitlements to use when signing. When a custom file is provided, make sure to add the entitlements that are required for Java apps.