Skip to content

Commit 8395c8a

Browse files
authored
feat(macos): add deeplink support for macos (#865)
1 parent 6cb0673 commit 8395c8a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

composeApp/build.gradle.kts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,13 +415,24 @@ compose.desktop {
415415
// Hide dock icon
416416
infoPlist {
417417
extraKeysRawXml = """
418-
<key>LSUIElement</key>
419-
<string>true</string>
418+
<key>LSUIElement</key>
419+
<string>true</string>
420+
<key>CFBundleURLTypes</key>
421+
<array>
422+
<dict>
423+
<key>CFBundleURLName</key>
424+
<string>ooni</string>
425+
<key>CFBundleURLSchemes</key>
426+
<array>
427+
<string>ooni</string>
428+
</array>
429+
</dict>
430+
</array>
420431
""".trimIndent()
421432
}
422433
jvmArgs("-Dapple.awt.enableTemplateImages=true") // tray template icon
423434
jvmArgs("-Dapple.awt.application.appearance=system") // adaptive title bar
424-
iconFile.set(rootProject.file("icons/app.svg"))
435+
iconFile.set(rootProject.file("icons/app.icns"))
425436
}
426437
windows {
427438
iconFile.set(rootProject.file("icons/app.ico"))

0 commit comments

Comments
 (0)