mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
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:
12
.github/workflows/electron-release.yml
vendored
12
.github/workflows/electron-release.yml
vendored
@@ -88,6 +88,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
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
|
- name: Build Next.js standalone
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -30,7 +30,8 @@
|
|||||||
"electron-builder": "^26.8.1"
|
"electron-builder": "^26.8.1"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@xmldom/xmldom": "^0.9.10"
|
"@xmldom/xmldom": "^0.9.10",
|
||||||
|
"plist": "^4.0.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "online.omniroute.desktop",
|
"appId": "online.omniroute.desktop",
|
||||||
|
|||||||
Reference in New Issue
Block a user