mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-03 14:20:50 +08:00
fix: update macOS build config
This commit is contained in:
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -29,14 +29,12 @@ jobs:
|
||||
- name: Build MacOS
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: |
|
||||
security create-keychain -p github_actions build.keychain
|
||||
security default-keychain -s build.keychain
|
||||
security unlock-keychain -p github_actions build.keychain
|
||||
security set-keychain-settings -t 3600 -u build.keychain
|
||||
export ELECTRON_BUILDER_EXTRA_ARGS="--universal"
|
||||
npm run build:mac
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||
DEBUG: electron-builder
|
||||
|
||||
# Windows Build
|
||||
- name: Build Windows
|
||||
@@ -80,9 +78,10 @@ jobs:
|
||||
dist/*.exe
|
||||
dist/*.deb
|
||||
dist/*.AppImage
|
||||
dist/latest.yml
|
||||
dist/latest*.yml
|
||||
dist/latest-mac.yml
|
||||
dist/latest-linux.yml
|
||||
dist/*.blockmap
|
||||
body: ${{ env.NOTES }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
15
package.json
15
package.json
@@ -95,13 +95,22 @@
|
||||
{
|
||||
"target": "dmg",
|
||||
"arch": [
|
||||
"x64",
|
||||
"arm64"
|
||||
"universal"
|
||||
]
|
||||
}
|
||||
],
|
||||
"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": {
|
||||
"icon": "resources/favicon.ico",
|
||||
|
||||
Reference in New Issue
Block a user