Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(windows): use native separators for NSIS preflight source

review42d866b90d51
diff --git a/build/installer.nsh b/build/installer.nsh
index 5361d85e9..e70ab69b7 100644
--- a/build/installer.nsh
+++ b/build/installer.nsh
@@ -2,7 +2,7 @@
# including the detached session host. A renamed hard link still holds the installed image open.
!macro customCheckAppRunning
InitPluginsDir
- File /oname=$PLUGINSDIR\nodeterm-update-preflight.ps1 "${PROJECT_DIR}/scripts/windows-update-preflight.ps1"
+ File /oname=$PLUGINSDIR\nodeterm-update-preflight.ps1 "${PROJECT_DIR}\scripts\windows-update-preflight.ps1"
nodeterm_preflight_retry:
nsExec::Exec /TIMEOUT=15000 '"$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$PLUGINSDIR\nodeterm-update-preflight.ps1" -InstallDirectory "$INSTDIR"'
Pop $R0
diff --git a/scripts/windows-update-preflight.test.ts b/scripts/windows-update-preflight.test.ts
index fda3f9e6e..0a9d44e89 100644
--- a/scripts/windows-update-preflight.test.ts
+++ b/scripts/windows-update-preflight.test.ts
@@ -75,6 +75,7 @@ describe('NSIS safety wiring', () => {
expect(check).toBeGreaterThanOrEqual(0)
expect(check).toBeLessThan(install.indexOf('!insertmacro uninstallOldVersion SHELL_CONTEXT'))
expect(fs.readFileSync(templates + 'uninstaller.nsh', 'utf8')).toContain('!insertmacro CHECK_APP_RUNNING')
+ expect(include).toContain('"${PROJECT_DIR}\\scripts\\windows-update-preflight.ps1"')
})
it('only proceeds on proven clear; silent, error and cancellation paths quit nonzero', () => {
expect(include).toMatch(/\$R0 == 0\s+Goto nodeterm_preflight_clear/)