From 11ec843bd74a419c4fac0483d8c866e72c54a919 Mon Sep 17 00:00:00 2001 From: Erwan Guyader Date: Mon, 14 Oct 2024 16:48:43 +0200 Subject: [PATCH] WIP: fix: Let electron-builder notarize app --- .github/workflows/macos.yaml | 1 + electron-builder.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index 479a58647..4aec06e6a 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -37,6 +37,7 @@ env: OS_PROJECT_DOMAIN_NAME: "Default" OS_AUTH_URL: "https://auth.cloud.ovh.net/v3" OS_IDENTITY_API_VERSION: "3" + APPLE_APP_SPECIFIC_PASSWORD: "${{ secrets.APPLE_ID_PASSWORD }}" jobs: cancel: diff --git a/electron-builder.yml b/electron-builder.yml index 17f2dddb5..04f7ebd58 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -23,7 +23,7 @@ files: - node_modules/cozy-ui/dist/*.css forceCodeSigning: true afterPack: './build/afterPackHook.js' -afterSign: './build/afterSignHook.js' +#afterSign: './build/afterSignHook.js' asarUnpack: - gui/scripts/** - '**/*.node' # see https://www.electronjs.org/docs/tutorial/application-packaging#adding-unpacked-files-to-asar-archives @@ -47,6 +47,7 @@ mac: - target: dmg arch: - x64 + notarize: true dmg: contents: - x: 110 @@ -55,6 +56,7 @@ dmg: y: 150 type: link path: '/Applications' + notarize: true win: target: