- The macOS dev launcher called `cp -cR`, `plutil` and `codesign` from
PATH; with Homebrew coreutils first, GNU cp rejects `-c` and the
launcher exits. It now uses /bin/cp, /usr/bin/plutil and
/usr/bin/codesign.
- RefreshTokenStore asked safeStorage (the macOS Keychain) in its
constructor on every launch, even with account features off; a
re-signed dev bundle then blocked main on an access prompt before the
backend started. The keyring is now asked only to read a saved token
or write a new one, `remembered` only with account features on, and a
keyring that throws keeps the session in memory.
- electron-vite starts the new Electron on a main-process edit while the
old one still holds the single-instance lock, so the new one quit and
ended the session (a failed lock request never reaches `ready`, so
retrying cannot help). Each dev instance records its pid; the next
waits up to 20 s for it to exit before asking for the lock. Packaged
builds never wait.
The reported rolldown first-watch-build stall did not reproduce here
(Darwin 27 arm64, rolldown 1.2.7: BUNDLE_END fires in ~0.1 s with the
native watcher), so no polling override is added.
Inspired by #3813 by @larrytoube.
electron-vite preview reads node_modules/electron/path.txt itself and throws
'Electron uninstall' before the lazily downloaded binary exists. start and
preview now run the same launcher as dev, which resolves the binary first,
and the launcher drops an inherited ELECTRON_RUN_AS_NODE.