From 8ef34835d6b791f7f7003318cf06262b61bbda99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moon=20Dav=C3=A9?= Date: Wed, 24 Jun 2026 14:53:08 -0400 Subject: [PATCH] Pass entitlements file when running `codesign` command --- app/build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 0dbd48fdb..4fd3c8962 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -524,6 +524,7 @@ tasks.register("signResources"){ } group = "compose desktop" val resourcesPath = composeResources("") + val entitlements = file("macos/entitlements.plist").absolutePath // find jars in the resources directory val jars = mutableListOf() @@ -563,7 +564,7 @@ tasks.register("signResources"){ exclude("*.dll") }.forEach{ file -> exec { - commandLine("codesign", "--timestamp", "--force", "--deep","--options=runtime", "--sign", "Developer ID Application", file) + commandLine("codesign", "--timestamp", "--force", "--deep","--options=runtime", "--entitlements", entitlements, "--sign", "Developer ID Application", file) } } jars.forEach { file -> @@ -615,6 +616,7 @@ tasks.register("signApp"){ "--force", "--deep", "--options=runtime", + "--entitlements", file("macos/entitlements.plist").absolutePath, "--sign", "Developer ID Application", app) }