diff --git a/build.gradle b/build.gradle index 0f575d24..d7cc1fb8 100644 --- a/build.gradle +++ b/build.gradle @@ -235,6 +235,14 @@ packageTask('mac', [], []) { // TODO: codesign --sign Example --options runtime --entitlements test/test.entitlements --force build/Release/test.app // TODO: https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow println("Sending zip file to Apple for notarization") + ant.exec(executable: "xcrun") { + ant.arg(value: "altool") + ant.arg(value: "--list-providers") + ant.arg(value: "--username") + ant.arg(value: System.getenv("APPLE_USER")) + ant.arg(value: "--password") + ant.arg(value: System.getenv("APPLE_PASSWORD")) + } ant.exec(executable: "xcrun") { ant.arg(value: "altool") ant.arg(value: "--notarize-app")