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

View File

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