From de1ba8b577ced20a878152ff2e512396504ddf90 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Thu, 20 Oct 2022 23:36:19 -0400 Subject: [PATCH] Download cirrus ci artifacts in codesign job --- .ci/macos/notarize.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.ci/macos/notarize.sh b/.ci/macos/notarize.sh index 2a62e928..b3347a83 100755 --- a/.ci/macos/notarize.sh +++ b/.ci/macos/notarize.sh @@ -13,6 +13,15 @@ security unlock-keychain -p "${RUNNER_USER_PW}" login.keychain if [ "${CI_PIPELINE_TRIGGERED}" ]; then echo "cirrus build id: ${TRIGGER_BUILD_ID}" cat "${TRIGGER_PAYLOAD}" + # download the build artifacts from cirrus api + wget "https://api.cirrus-ci.com/v1/artifact/build/${TRIGGER_BUILD_ID}/binaries.zip" + # cirrus ci artifacts task name is 'binaries' so that's the zip name. + unzip binaries.zip + # we zip 'build/nheko.app' in cirrus ci, cirrus itself puts it in a 'build' directory + # so move it to the right place for the rest of the process. + mv build/build/nheko.app build + # get rid of the extra build directory + rm -r build/build fi ( cd build || exit