From 1166e88f67549d57db4f11b0d181e93e2a6f3b9a Mon Sep 17 00:00:00 2001 From: Pompurin404 Date: Tue, 31 Dec 2024 11:45:43 +0800 Subject: [PATCH] try to add code sign --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c72f92aa..307c91ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -201,6 +201,11 @@ jobs: env: npm_config_arch: ${{ matrix.arch }} npm_config_target_arch: ${{ matrix.arch }} + APPLE_ID: ${{ secrets.APPLE_ID }} + APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} + APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + CSC_LINK: ${{ secrets.CSC_LINK }} + CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} run: | chmod +x build/pkg-scripts/postinstall pnpm build:mac --${{ matrix.arch }} @@ -251,6 +256,11 @@ jobs: env: npm_config_arch: ${{ matrix.arch }} npm_config_target_arch: ${{ matrix.arch }} + APPLE_ID: ${{ secrets.APPLE_ID }} + APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} + APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + CSC_LINK: ${{ secrets.CSC_LINK }} + CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} run: | sed -i "" -e "s/macos/catalina/" electron-builder.yml chmod +x build/pkg-scripts/postinstall