Skip to content

Commit

Permalink
GitHub action build update (#1281)
Browse files Browse the repository at this point in the history
* add build arch

* update mac target

* update actions
  • Loading branch information
qishibo authored Nov 3, 2024
1 parent 7f912d6 commit 30b27c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
node-version: 16
- run: npm ci
- run: npm run pack:prepare
- run: npm run pack:macm1:publish
# - run: npm run pack:macm1:publish
- run: npm run pack:mac:publish

- name: Cleanup keychain
Expand Down
9 changes: 5 additions & 4 deletions pack/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build": {
"appId": "me.qii404.another-redis-desktop-manager",
"productName": "Another Redis Desktop Manager",
"artifactName": "${productName}.${version}.${ext}",
"artifactName": "${productName}-${os}-${version}-${arch}.${ext}",
"copyright": "Copyright © 2024 qii404",
"asar": true,
"directories": {
Expand All @@ -35,7 +35,8 @@
"win": {
"icon": "icons/icon.ico",
"target": [
"nsis"
{"target": "nsis", "arch": ["x64", "arm64"]},
{"target": "zip", "arch": ["x64"]}
]
},
"nsis": {
Expand All @@ -48,7 +49,7 @@
"icon": "icons/icon.png",
"category": "Utility",
"target": [
"AppImage"
{"target": "AppImage", "arch": ["x64", "arm64"]}
]
},
"snap": {
Expand All @@ -59,7 +60,7 @@
"type": "development",
"category": "public.app-category.developer-tools",
"target": [
"dmg"
{"target": "dmg", "arch": ["x64", "arm64"]}
],
"extendInfo": {
"ElectronTeamID": "68JN8DV835"
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
"pack:mas": "CSC_IDENTITY_AUTO_DISCOVERY=false npm run pack:mac",
"pack:linux": "electron-builder --project=dist -l -p never",
"pack:win:publish": "electron-builder --project=dist -w -p always",
"pack:mac:publish": "electron-builder --project=dist -m --x64 -p always",
"pack:mac:publish": "electron-builder --project=dist -m -p always",
"pack:macm1:publish": "electron-builder --project=dist -m --arm64 -p always -c.artifactName='${productName} M1 ${arch} ${version}.${ext}'",
"pack:linux:publish": "electron-builder --project=dist -l -p always",
"pack:win:docker": "docker run --rm -it --env GH_TOKEN=$GH_TOKEN --env ELECTRON_CACHE=\"/root/.cache/electron\" --env ELECTRON_BUILDER_CACHE=\"/root/.cache/electron-builder\" -v ${PWD}:/project -v ~/.cache/electron:/root/.cache/electron -v ~/.cache/electron-builder:/root/.cache/electron-builder electronuserland/builder:wine sh -c \"electron-builder --project=dist -w -p never\"",
"et": "et -m",
"sign": "cd pack/mas; bash sign.sh"
},
Expand Down

0 comments on commit 30b27c9

Please sign in to comment.