From 8ce3a3ae730c45de3c7cc4595e22c5356d421424 Mon Sep 17 00:00:00 2001 From: Ivan Wallis Date: Thu, 8 Jun 2023 07:32:58 -0500 Subject: [PATCH] updated apple signing gitlab script for package signing --- gitlab/venafi-csp-apple-codesign.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gitlab/venafi-csp-apple-codesign.yml b/gitlab/venafi-csp-apple-codesign.yml index 3228d11..35f14f6 100644 --- a/gitlab/venafi-csp-apple-codesign.yml +++ b/gitlab/venafi-csp-apple-codesign.yml @@ -1,6 +1,7 @@ stages: # List of stages for jobs, and their order of execution - build_sign - sign_standalone + - build_sign_package build-job: # Build and Sign stage: build_sign @@ -15,4 +16,11 @@ codesign-job: # Sign application using codesign standalone utility stage: sign_standalone script: - | - codesign --force -o runtime --sign "${SIGNING_CERTIFICATE}" archives.xcarchive/Products/Applications/SampleIOSApp.app \ No newline at end of file + codesign --force -o runtime --sign "${SIGNING_CERTIFICATE}" archives.xcarchive/Products/Applications/SampleIOSApp.app + +build-sign-package-job: + stage: build_sign_package + script: + - | + productbuild --component archives.xcarchive/Products/Applications/SampleIOSApp.app sampleiosapp.pkg + productsign --sign "${PACKAGE_SIGNER_CERTIFICATE}" sampleiosapp.pkg sampleiosapp-signed.pkg \ No newline at end of file