fix: update macOS build config

This commit is contained in:
alger
2025-01-01 14:42:19 +08:00
parent f833306b60
commit 4d5bcba6c7
2 changed files with 16 additions and 8 deletions
+4 -5
View File
@@ -29,14 +29,12 @@ jobs:
- name: Build MacOS - name: Build MacOS
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-latest'
run: | run: |
security create-keychain -p github_actions build.keychain export ELECTRON_BUILDER_EXTRA_ARGS="--universal"
security default-keychain -s build.keychain
security unlock-keychain -p github_actions build.keychain
security set-keychain-settings -t 3600 -u build.keychain
npm run build:mac npm run build:mac
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_IDENTITY_AUTO_DISCOVERY: false CSC_IDENTITY_AUTO_DISCOVERY: false
DEBUG: electron-builder
# Windows Build # Windows Build
- name: Build Windows - name: Build Windows
@@ -80,9 +78,10 @@ jobs:
dist/*.exe dist/*.exe
dist/*.deb dist/*.deb
dist/*.AppImage dist/*.AppImage
dist/latest.yml dist/latest*.yml
dist/latest-mac.yml dist/latest-mac.yml
dist/latest-linux.yml dist/latest-linux.yml
dist/*.blockmap
body: ${{ env.NOTES }} body: ${{ env.NOTES }}
draft: false draft: false
prerelease: false prerelease: false
+12 -3
View File
@@ -95,13 +95,22 @@
{ {
"target": "dmg", "target": "dmg",
"arch": [ "arch": [
"x64", "universal"
"arm64"
] ]
} }
], ],
"artifactName": "${productName}-${version}-mac-${arch}.${ext}", "artifactName": "${productName}-${version}-mac-${arch}.${ext}",
"darkModeSupport": true "darkModeSupport": true,
"hardenedRuntime": false,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"notarize": false,
"identity": null,
"type": "distribution",
"binaries": [
"Contents/MacOS/AlgerMusicPlayer"
]
}, },
"win": { "win": {
"icon": "resources/favicon.ico", "icon": "resources/favicon.ico",