Launch the packaged artifact in CI, not the dev build
After packaging, start the real installer output on a fresh runner of each target OS and wait for the first window. Playwright can drive a packaged Electron app through executablePath, and firstWindow() waits until a window exists. If the launch times out, check that the nodeCliInspect fuse is not set to false.
import { _electron as electron } from 'playwright';
const app = await electron.launch({ executablePath: process.argv[2], timeout: 30000 });
const win = await app.firstWindow();
await win.waitForLoadState('domcontentloaded');
console.log('window title:', await win.title());
await app.close();
Give Linux a display in CI
Headed launches on Linux agents need Xvfb. Playwright's CI guide says to put xvfb-run before the command; its Docker image and GitHub Action already include it. Run the same smoke test in a matrix of Linux, Windows and macOS jobs, each on a fresh VM.
xvfb-run node smoke.mjs dist/linux-unpacked/myapp
Sign and notarize with notarytool, and read the log every time
Replace any altool step with xcrun notarytool. Use --wait so the job fails on rejection. Fetch the log even when the submission succeeds, because Apple's own migration note says it can hold warnings worth fixing. Sign every release with the same identity so the code identity stays stable.
xcrun notarytool submit MyApp.zip --keychain-profile PROFILE --wait
xcrun notarytool log SUBMISSION_ID --keychain-profile PROFILE
Test on a low-memory device and an older GPU driver
Keep a small device list that includes a low-RAM Android phone and a machine with an older graphics driver. For memory failures, create an emulator with low memory capacity, as Android's crash guide suggests, and use stressapptest to create memory pressure. Handle onTrimMemory callbacks and release caches when the system asks.
Start crash reporting before anything else and tag it
In Electron, call crashReporter.start() as early as possible, ideally before the ready event, because a renderer created earlier is not monitored. Set uploadToServer: false if you want local dumps only; they land in app.getPath('crashDumps'). Add the OS and driver version as annotations so reports can be grouped.
import { crashReporter } from 'electron';
crashReporter.start({
submitURL: 'https://crashes.example.com/submit',
globalExtra: { channel: 'stable' },
});
Stage every update and keep a halt switch
In Play Console, set a staged rollout percentage. The percentage does not rise on its own. If you halt the rollout, users who already have the version keep it and nobody else receives it. For electron-updater, the stagingPercentage field in latest.yml limits the share of installs that get the update. Watch crash reports before raising the number.
# latest.yml
stagingPercentage: 10
Make startup survive old data and broken paths
Several reports describe an app that exits when it finds a newer database schema or a broken directory link during profile migration. Catch these at startup, show a message with a recovery action, and write the error to a local log before exiting.