diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 4f91e6d98..c3c1629aa 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -390,6 +390,25 @@ afterEvaluate{ } } +val verifySignedMacApp = tasks.register("verifySignedMacApp") { + onlyIf { OperatingSystem.current().isMacOsX } + dependsOn("createDistributable") + group = "compose desktop" + + commandLine( + "codesign", + "-vvv", + "--deep", + "--strict", + layout.buildDirectory.dir("compose/binaries/main/app/Processing.app").get().asFile.absolutePath + ) +} + +afterEvaluate { + tasks.named("notarizeDmg").configure { + dependsOn(verifySignedMacApp) + } +} // LEGACY TASKS // Most of these are shims to be compatible with the old build system