Skip to content

Commit 31b7b2c

Browse files
authored
Pass entitlements file when running codesign command (#1533)
1 parent ecd9495 commit 31b7b2c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ tasks.register("signResources"){
524524
}
525525
group = "compose desktop"
526526
val resourcesPath = composeResources("")
527+
val entitlements = file("macos/entitlements.plist").absolutePath
527528

528529
// find jars in the resources directory
529530
val jars = mutableListOf<File>()
@@ -563,7 +564,7 @@ tasks.register("signResources"){
563564
exclude("*.dll")
564565
}.forEach{ file ->
565566
exec {
566-
commandLine("codesign", "--timestamp", "--force", "--deep","--options=runtime", "--sign", "Developer ID Application", file)
567+
commandLine("codesign", "--timestamp", "--force", "--deep","--options=runtime", "--entitlements", entitlements, "--sign", "Developer ID Application", file)
567568
}
568569
}
569570
jars.forEach { file ->
@@ -615,6 +616,7 @@ tasks.register<Exec>("signApp"){
615616
"--force",
616617
"--deep",
617618
"--options=runtime",
619+
"--entitlements", file("macos/entitlements.plist").absolutePath,
618620
"--sign", "Developer ID Application",
619621
app)
620622
}

0 commit comments

Comments
 (0)