fix(electron): resolve macOS plist mimeType and Windows EPERM build failures

- Override plist to v4.0.0 which passes mandatory mimeType to DOMParser
- Add USERPROFILE sanitization on Windows to avoid EPERM on junction points
- Add NPM_CONFIG_LEGACY_PEER_DEPS to Electron workflow install step
This commit is contained in:
diegosouzapw
2026-04-26 17:37:55 -03:00
parent 71745820ed
commit dbd4b0a7d2
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",