feat(sync-ui): sync window self-spawns the app, dropping the local launcher/bun requirement

resolveSyncLauncherCommand now returns process.execPath + --sync-cli
(with the app path prepended in dev runs) instead of hunting for bun and
the bundled launcher script. Same NDJSON child protocol, so the sync
window, checks, and auto-sync scheduler are unchanged.
This commit is contained in:
2026-07-11 20:25:48 -07:00
parent ffa183b1a1
commit cd046b310a
3 changed files with 35 additions and 47 deletions
+5 -1
View File
@@ -2257,7 +2257,11 @@ const syncUiRuntime = createSyncUiRuntime({
const configured = getResolvedConfig().immersionTracking?.dbPath?.trim();
return configured || DEFAULT_IMMERSION_DB_PATH;
},
resolveLauncherCommand: () => resolveSyncLauncherCommand(),
resolveLauncherCommand: () =>
resolveSyncLauncherCommand({
execPath: process.execPath,
appPath: app.isPackaged ? null : app.getAppPath(),
}),
runLauncher: runSyncLauncher,
getWindow: () => appState.syncUiWindow,
pickSnapshotFile: async () => {