From c9be69f226612e27ad2417b8cf20f6447265c6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Tue, 2 Aug 2022 13:03:25 +0200 Subject: [PATCH 1/3] Add code sign and notarization --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70efb0e..0ef9f3b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: choco install visualstudio2019buildtools visualstudio2019-workload-vctools fi if [ "$RUNNER_OS" == "macOS" ]; then - env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64" make build + env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64 --config.dmg.sign=false" make build for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.dmg; do if [[ "$file" == *"arm64"* ]]; then cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.dmg @@ -63,6 +63,11 @@ jobs: fi shell: bash working-directory: lens + env: + APPLEID: ${{ secrets.APPLEID }} + APPLEIDPASS: ${{ secrets.APPLEIDPASS }} + CSC_LINK: ${{ secrets.CSC_LINK }} + CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} - name: Calculate SHA256 checksum run: | if [ "$RUNNER_OS" == "Windows" ]; then From b89324589d79aa0b328b13ea5af7976dd313f69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Tue, 9 Aug 2022 21:16:54 +0200 Subject: [PATCH 2/3] Output SHA256 file hashes --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ef9f3b..b5a92de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,9 +71,9 @@ jobs: - name: Calculate SHA256 checksum run: | if [ "$RUNNER_OS" == "Windows" ]; then - certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 > OpenLens-${{ env.LENS_VERSION }}.exe.sha256 + certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 | tee OpenLens-${{ env.LENS_VERSION }}.exe.sha256 else - for filename in OpenLens-${{ env.LENS_VERSION }}*; do shasum -a 256 ${filename} > ${filename}.sha256 ; done + for filename in OpenLens-${{ env.LENS_VERSION }}*; do shasum -a 256 ${filename} | tee ${filename}.sha256 ; done fi shell: bash working-directory: lens/releasefiles From 5c958a7ddf934bc7016a311e7fc5d8b385c1d373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Tue, 9 Aug 2022 22:33:31 +0200 Subject: [PATCH 3/3] Set APPBUNDLEID through environment --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b5a92de..05216e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,6 +64,7 @@ jobs: shell: bash working-directory: lens env: + APPBUNDLEID: "io.kontena.lens-app" APPLEID: ${{ secrets.APPLEID }} APPLEIDPASS: ${{ secrets.APPLEIDPASS }} CSC_LINK: ${{ secrets.CSC_LINK }}