Skip to content

Commit 5164116

Browse files
authored
add codesign verify step for mac builds (#1509)
and use verbose output so that during release actions, someone can get a little info to debug the issue even if they don't have a mac. this ended up being implemented in the gradle build file instead of the release.yml file, because the Build with Gradle step (which is `./gradlew packageDistributionForCurrentOS`) includes both signing and notarization. to stop the build early if the app signing failed, the intervening check had to be inserted into the normal build process.
1 parent c6090d5 commit 5164116

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

app/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,25 @@ afterEvaluate{
390390
}
391391
}
392392

393+
val verifySignedMacApp = tasks.register<Exec>("verifySignedMacApp") {
394+
onlyIf { OperatingSystem.current().isMacOsX }
395+
dependsOn("createDistributable")
396+
group = "compose desktop"
397+
398+
commandLine(
399+
"codesign",
400+
"-vvv",
401+
"--deep",
402+
"--strict",
403+
layout.buildDirectory.dir("compose/binaries/main/app/Processing.app").get().asFile.absolutePath
404+
)
405+
}
406+
407+
afterEvaluate {
408+
tasks.named("notarizeDmg").configure {
409+
dependsOn(verifySignedMacApp)
410+
}
411+
}
393412

394413
// LEGACY TASKS
395414
// Most of these are shims to be compatible with the old build system

0 commit comments

Comments
 (0)