diff --git a/.github/workflows/electron-release.yml b/.github/workflows/electron-release.yml index 16d8eceb6d..ffa0dc504e 100644 --- a/.github/workflows/electron-release.yml +++ b/.github/workflows/electron-release.yml @@ -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: diff --git a/electron/package.json b/electron/package.json index c693d6b149..fe02bb8626 100644 --- a/electron/package.json +++ b/electron/package.json @@ -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",