mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-24 16:27:23 +08:00
fix: update macOS build config
This commit is contained in:
@@ -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
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user