Use new notarytool for OSX notarization
@@ -42,14 +42,6 @@ package-osx-pkg:
- security unlock-keychain -p ${MAC_OS_KEYCHAIN_PW} /Users/ecsec-ci/Library/Keychains/login.keychain-db
- security unlock-keychain -p ${MAC_OS_KEYCHAIN_PW} /Users/ecsec-ci/Library/Keychains/ecsec.keychain-db
- mvn install -DskipTests -Ddesktop-package -Dpackage.type=PKG
- # Notarization Process
- - PKG_FILE_PATH=$(find packager/richclient-packager/target/jpackage/ -name 'Open-eCard-App-*.pkg')
- - xcrun altool --notarize-app
- --primary-bundle-id "org.openecard.versioncheck.MainLoader"
- --username "${MAC_OS_NOTARIZATION_USERNAME}"
- --password "${MAC_OS_NOTARIZATION_PASSWORD}"
- --asc-provider "72RMQ6K75Z"
- --file $PKG_FILE_PATH
package-osx-dmg:
stage: package
@@ -64,6 +56,24 @@ package-osx-dmg:
script:
- mvn install -DskipTests -Ddesktop-package -Dpackage.type=DMG
+notarize-osx-pkg:
+ stage: package
+ tags:
+ - "mac"
+ - "dev-cert"
+ dependencies:
+ - "package-osx-pkg"
+ - "package-osx-dmg"
+ script:
+ - security unlock-keychain -p ${MAC_OS_KEYCHAIN_PW} /Users/ecsec-ci/Library/Keychains/login.keychain-db
+ - PKG_FILE_PATH=$(find packager/richclient-packager/target/jpackage/ -name 'Open-eCard-App-*.pkg')
+ - xcrun notarytool submit ${PKG_FILE_PATH}
+ --keychain-profile "oec-installers"
+ --wait
+ needs: [ "package-osx-pkg", "package-osx-dmg" ]
+ rules:
+ - when: manual
+
package-win:
stage: package
tags:
