Add support for macOS 26+ layered icons#4
Merged
kdroidFilter merged 1 commit intomainfrom Feb 9, 2026
Merged
Conversation
Port of JetBrains/compose-multiplatform#5451. Adds a `layeredIconDir` DSL property that compiles a .icon directory into Assets.car via xcrun actool and embeds it in the .app bundle for both JVM and native Mac targets. Requires actool >= 26.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
layeredIconDirDSL property tomacOS {}block for both JVM and native targets.icondirectories intoAssets.carviaxcrun actool(requires actool >= 26.0)Assets.carin the.appbundle and setsCFBundleIconNameinInfo.plistChanged files
PlatformSettings.kt— newlayeredIconDir: DirectoryPropertyMacAssetsTool.kt— new utility for actool compilation and version checkingAbstractJPackageTask.kt— layered icon support for JVM packagingAbstractNativeMacApplicationPackageAppDirTask.kt— layered icon support for native packagingInfoPlistBuilder.kt— addedCFBundleIconNameplist keyosUtils.kt— addedplutiltoMacUtilsconfigureJvmApplication.kt/configureNativeApplication.kt— DSL wiringREADME.md— documentation with usage examplesUsage
nativeDistributions { macOS { iconFile.set(project.file("icons/MyApp.icns")) // fallback layeredIconDir.set(project.file("icons/MyApp.icon")) // layered } }Test plan