add zip package for macos

This commit is contained in:
pompurin404 2024-09-18 22:40:38 +08:00
parent e79e3dcd1b
commit b23f3123d4
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -198,7 +198,7 @@ jobs:
npm_config_target_arch: ${{ matrix.arch }}
run: pnpm build:mac --${{ matrix.arch }}
- name: Generate checksums
run: pnpm checksum .dmg
run: pnpm checksum .dmg .zip
- name: Upload Artifacts
if: startsWith(github.ref, 'refs/heads/')
uses: actions/upload-artifact@v4
@ -207,6 +207,7 @@ jobs:
path: |
dist/*.sha256
dist/*.dmg
dist/*.zip
if-no-files-found: error
- name: Publish Release
if: startsWith(github.ref, 'refs/tags/v')
@ -215,6 +216,7 @@ jobs:
files: |
dist/*.sha256
dist/*.dmg
dist/*.zip
body_path: changelog.md
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -40,6 +40,7 @@ nsis:
mac:
target:
- dmg
- zip
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.