fix(electron): pre-create userData dir for Windows + stream logs in CI

Windows smoke test exits code=0 because requestSingleInstanceLock()
fails silently when the APPDATA/<productName> directory doesn't exist.
Pre-create the directory so the lock file can be written.

Also enables ELECTRON_SMOKE_STREAM_LOGS=1 in CI for better debugging.
This commit is contained in:
diegosouzapw
2026-04-27 02:48:25 -03:00
parent 4d48454c11
commit ae77d1370e
2 changed files with 11 additions and 0 deletions

View File

@@ -137,12 +137,14 @@ jobs:
if: matrix.platform != 'linux'
env:
ELECTRON_SMOKE_TIMEOUT_MS: 60000
ELECTRON_SMOKE_STREAM_LOGS: "1"
run: npm run electron:smoke:packaged
- name: Smoke packaged Electron app (Linux)
if: matrix.platform == 'linux'
env:
ELECTRON_SMOKE_TIMEOUT_MS: 60000
ELECTRON_SMOKE_STREAM_LOGS: "1"
run: xvfb-run -a npm run electron:smoke:packaged
- name: Collect installers