fix(electron): cherry-pick macOS plist and Windows EPERM build fixes from main

Cherry-pick of dbd4b0a7 to keep release/v3.7.1 in sync with main.
This commit is contained in:
diegosouzapw
2026-04-26 17:45:06 -03:00
parent abeb78b95c
commit e30969fecd
2 changed files with 14 additions and 1 deletions

View File

@@ -88,6 +88,18 @@ jobs:
- name: Install dependencies
run: npm ci
env:
NPM_CONFIG_LEGACY_PEER_DEPS: true
- name: Sanitize Windows home directory
if: runner.os == 'Windows'
shell: bash
run: |
# The default USERPROFILE contains junction points (Application Data)
# that cause EPERM errors during Next.js standalone build glob scans.
# Create a clean temp profile directory to avoid this.
mkdir -p "$RUNNER_TEMP/home"
echo "USERPROFILE=$RUNNER_TEMP/home" >> $GITHUB_ENV
- name: Build Next.js standalone
env:

View File

@@ -30,7 +30,8 @@
"electron-builder": "^26.8.1"
},
"overrides": {
"@xmldom/xmldom": "^0.9.10"
"@xmldom/xmldom": "^0.9.10",
"plist": "^4.0.0"
},
"build": {
"appId": "online.omniroute.desktop",