[eric] updater: OPENSWARM_NO_UPDATE=1 stops a local packaged build from downgrading itself mid-smoke

This commit is contained in:
ciregenz
2026-08-07 20:30:05 -07:00
parent 2bd42f7f35
commit ed8e7d6304
+7
View File
@@ -1747,6 +1747,13 @@ async function clearStaleFrontendCache() {
function setupAutoUpdater() { function setupAutoUpdater() {
if (!autoUpdater) return; if (!autoUpdater) return;
// Escape hatch for locally-built packaged smokes: an unpublished build otherwise downloads the
// published release and silently DOWNGRADES on quit (the draft self-revert footgun, seen live on
// 1.7.0), which both ruins the test and pollutes its memory numbers with ShipIt churn.
if (process.env.OPENSWARM_NO_UPDATE === '1') {
console.log('[updater] disabled via OPENSWARM_NO_UPDATE=1 (local packaged smoke)');
return;
}
// Proactive, not post-mortem: an app running off the DMG or a Gatekeeper-translocated copy can NEVER self-update (Squirrel.Mac refuses read-only volumes, proven in the packaged smoke). Tell that cohort what to do at boot instead of after a failed check they may never click. // Proactive, not post-mortem: an app running off the DMG or a Gatekeeper-translocated copy can NEVER self-update (Squirrel.Mac refuses read-only volumes, proven in the packaged smoke). Tell that cohort what to do at boot instead of after a failed check they may never click.
if (process.platform === 'darwin' && isPackaged) { if (process.platform === 'darwin' && isPackaged) {
const exe = process.execPath || ''; const exe = process.execPath || '';