chore: enhance build configuration for macOS and update artifact naming
- Added new distribution scripts for macOS ARM64 and universal builds in package.json. - Updated macOS target configuration to support universal architecture. - Modified GitHub Actions workflow to use macOS 14 and adjusted artifact naming for macOS DMG files.
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -80,10 +80,10 @@ jobs:
|
|||||||
release_artifacts: "dist/*-win-installer.exe,dist/*-win-portable.exe"
|
release_artifacts: "dist/*-win-installer.exe,dist/*-win-portable.exe"
|
||||||
build_input: build_windows
|
build_input: build_windows
|
||||||
- name: mac
|
- name: mac
|
||||||
os: macos-13
|
os: macos-14
|
||||||
node: 18
|
node: 18
|
||||||
python: "3.11"
|
python: "3.11"
|
||||||
release_artifacts: "dist/*-mac.dmg"
|
release_artifacts: "dist/*-mac-*.dmg"
|
||||||
build_input: build_mac
|
build_input: build_mac
|
||||||
- name: linux
|
- name: linux
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
@@ -173,7 +173,7 @@ jobs:
|
|||||||
mv dist/*.whl python-dist/
|
mv dist/*.whl python-dist/
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
|
||||||
- name: Build Electron App
|
- name: Build Electron App (Universal)
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'push' ||
|
github.event_name == 'push' ||
|
||||||
(github.event_name == 'workflow_dispatch' && inputs[matrix.build_input] == true)
|
(github.event_name == 'workflow_dispatch' && inputs[matrix.build_input] == true)
|
||||||
|
|||||||
13
package.json
13
package.json
@@ -12,7 +12,9 @@
|
|||||||
"electron-postinstall": "electron-builder install-app-deps",
|
"electron-postinstall": "electron-builder install-app-deps",
|
||||||
"electron": "npm run electron-postinstall && npm run build && electron .",
|
"electron": "npm run electron-postinstall && npm run build && electron .",
|
||||||
"dist": "npm run electron-postinstall && npm run build && electron-builder --publish=never",
|
"dist": "npm run electron-postinstall && npm run build && electron-builder --publish=never",
|
||||||
"dist-prebuilt": "npm run electron-postinstall && npm run build-backend && electron-builder --publish=never"
|
"dist-prebuilt": "npm run electron-postinstall && npm run build-backend && electron-builder --publish=never",
|
||||||
|
"dist:mac-arm64": "npm run electron-postinstall && npm run build && electron-builder --mac --arm64 --publish=never",
|
||||||
|
"dist:mac-universal": "npm run electron-postinstall && npm run build && electron-builder --mac --universal --publish=never"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -36,9 +38,14 @@
|
|||||||
"buildResources": "electron/build"
|
"buildResources": "electron/build"
|
||||||
},
|
},
|
||||||
"mac": {
|
"mac": {
|
||||||
"target": "dmg",
|
"target": {
|
||||||
|
"target": "dmg",
|
||||||
|
"arch": [
|
||||||
|
"universal"
|
||||||
|
]
|
||||||
|
},
|
||||||
"identity": null,
|
"identity": null,
|
||||||
"artifactName": "ReticulumMeshChat-v${version}-${os}.${ext}",
|
"artifactName": "ReticulumMeshChat-v${version}-${os}-${arch}.${ext}",
|
||||||
"extendInfo": {
|
"extendInfo": {
|
||||||
"NSMicrophoneUsageDescription": "Microphone access is only needed for Audio Calls",
|
"NSMicrophoneUsageDescription": "Microphone access is only needed for Audio Calls",
|
||||||
"com.apple.security.device.audio-input": true
|
"com.apple.security.device.audio-input": true
|
||||||
|
|||||||
Reference in New Issue
Block a user