mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
only enable notarize when release
This commit is contained in:
parent
0b06d2ac9d
commit
ed9963c0a5
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -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 }}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user