From 2761a312d767161be1bc25446d04e5ec1b96f8cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20A=CC=81ngel=20San=20Marti=CC=81n=20Rodri=CC=81guez?= Date: Wed, 14 Sep 2022 18:43:20 +0200 Subject: [PATCH] Notarize macos dmgs --- azure-pipelines.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ca90f537..872227f3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -150,6 +150,13 @@ jobs: qmake make check TESTARGS="-maxwarnings 100000" displayName: 'Build and run tests' + - script: | + SKIP_CODESIGN="$(tr [A-Z] [a-z] <<< "$IS_FORK")" + if [ "$SKIP_CODESIGN" = false ]; then + xcrun notarytool submit *.dmg --apple-id $(AppleId) --team-id $(TeamId) --password $(AppPassword) --wait + xcrun stapler staple *.dmg + fi + displayName: 'Notarize' - task: CopyFiles@2 inputs: contents: '*.dmg' @@ -200,6 +207,13 @@ jobs: qmake make check TESTARGS="-maxwarnings 100000" displayName: 'Build and run tests' + - script: | + SKIP_CODESIGN="$(tr [A-Z] [a-z] <<< "$IS_FORK")" + if [ "$SKIP_CODESIGN" = false ]; then + xcrun notarytool submit *.dmg --apple-id $(AppleId) --team-id $(TeamId) --password $(AppPassword) --wait + xcrun stapler staple *.dmg + fi + displayName: 'Notarize' - task: CopyFiles@2 inputs: contents: '*.dmg'