mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-19 22:46:25 -05:00
Add support for universal Mac build (x64 + arm64)
Changes to package.json: - Enable ASAR packaging (was disabled) - Replace extraFiles with extraResources for Python executables - Old: Resources/app/electron/build/exe - New: Resources/python (outside ASAR, accessible to spawn) - Mac: Add universal build support (x64 + arm64 in single .dmg) - Mac: Add x64ArchFiles rule for Python (cx_Freeze creates universal binaries) - Mac: Add explicit icon configuration - Mac: Update artifact name to include architecture - Remove buildResources directive (conflicted with extraResources) - Remove duplicate extraFiles from win/linux sections (centralized) - Add npm scripts: dist:mac-arm64 and dist:mac-universal Changes to electron/main.js: - Update Python exe path resolution for extraResources location - Check process.resourcesPath/python first (production build) - Fall back to local build/exe for development Changes to .github/workflows/build.yml: - Switch Mac runner from macos-13 (Intel) to macos-14 (Apple Silicon) - Update artifacts pattern from '*-mac.dmg' to '*-mac-*.dmg'
This commit is contained in:
parent
002360399c
commit
1518013225
4 changed files with 69 additions and 111 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
|
@ -45,7 +45,7 @@ jobs:
|
|||
artifacts: "dist/*-win-installer.exe,dist/*-win-portable.exe"
|
||||
|
||||
build_mac:
|
||||
runs-on: macos-13
|
||||
runs-on: macos-14
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
|
|
@ -68,7 +68,7 @@ jobs:
|
|||
- name: Install NodeJS Deps
|
||||
run: npm install
|
||||
|
||||
- name: Build Electron App
|
||||
- name: Build Electron App (Universal)
|
||||
run: npm run dist
|
||||
|
||||
- name: Create Release
|
||||
|
|
@ -80,7 +80,7 @@ jobs:
|
|||
replacesArtifacts: true
|
||||
omitDraftDuringUpdate: true
|
||||
omitNameDuringUpdate: true
|
||||
artifacts: "dist/*-mac.dmg"
|
||||
artifacts: "dist/*-mac-*.dmg"
|
||||
|
||||
build_linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue