Skip to content

Commit

Permalink
only enable notarize when release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pompurin404 committed Dec 31, 2024
1 parent 0b06d2a commit ed9963c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -252,6 +256,10 @@ jobs:
pnpm add @mihomo-party/sysproxy-darwin-${{ matrix.arch }}
pnpm add -D [email protected]
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 }}
Expand Down
2 changes: 1 addition & 1 deletion electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mac:
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: true
notarize: false
artifactName: ${name}-macos-${version}-${arch}.${ext}
pkg:
allowAnywhere: false
Expand Down

0 comments on commit ed9963c

Please sign in to comment.