only enable notarize when release

This commit is contained in:
Pompurin404
2024-12-31 12:44:10 +08:00
parent 07a1730615
commit 1e3febdc80
4 changed files with 3231 additions and 3493 deletions

View File

@@ -197,6 +197,10 @@ jobs:
pnpm install
pnpm add @mihomo-party/sysproxy-darwin-${{ matrix.arch }}
pnpm prepare --${{ matrix.arch }}
- name: Enable Notarization
if: startsWith(github.ref, 'refs/tags/v')
run: |
sed -i "" -e "s/notarize: false/notarize: true/" electron-builder.yml
- name: Build
env:
npm_config_arch: ${{ matrix.arch }}
@@ -252,6 +256,10 @@ jobs:
pnpm add @mihomo-party/sysproxy-darwin-${{ matrix.arch }}
pnpm add -D electron@32.2.2
pnpm prepare --${{ matrix.arch }}
- name: Enable Notarization
if: startsWith(github.ref, 'refs/tags/v')
run: |
sed -i "" -e "s/notarize: false/notarize: true/" electron-builder.yml
- name: Build
env:
npm_config_arch: ${{ matrix.arch }}