Skip to content

Commit 9eea5a9

Browse files
committed
Codesign clobbered when merging webgpu branch
1 parent 2766c2e commit 9eea5a9

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

app/build.gradle.kts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ tasks.register("signResources") {
539539
}
540540
group = "compose desktop"
541541
val resourcesPath = composeResources("")
542+
val entitlements = file("macos/entitlements.plist").absolutePath
542543

543544
// find jars in the resources directory
544545
val jars = mutableListOf<File>()
@@ -576,11 +577,10 @@ tasks.register("signResources") {
576577
exclude("*.jar")
577578
exclude("*.so")
578579
exclude("*.dll")
579-
}.forEach{ f ->
580-
ProcessBuilder("codesign", "--timestamp", "--force", "--deep", "--options=runtime", "--sign", "Developer ID Application", f.absolutePath)
581-
.inheritIO()
582-
.start()
583-
.waitFor()
580+
}.forEach{ file ->
581+
exec {
582+
commandLine("codesign", "--timestamp", "--force", "--deep","--options=runtime", "--entitlements", entitlements, "--sign", "Developer ID Application", file)
583+
}
584584
}
585585
jars.forEach { file ->
586586
FileOutputStream(File(file.parentFile, file.nameWithoutExtension)).use { fos ->
@@ -631,6 +631,7 @@ tasks.register<Exec>("signApp"){
631631
"--force",
632632
"--deep",
633633
"--options=runtime",
634+
"--entitlements", file("macos/entitlements.plist").absolutePath,
634635
"--sign", "Developer ID Application",
635636
app)
636637
}

0 commit comments

Comments
 (0)