You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c37294d
Browse filesBrowse the repository at this point in the historyBrowse files
* chore(fork): per-productName NSIS install-dir override + uninstall hook
Fork builds of this branch install to D:\t3code\<stage>\<productName>\ instead of %LOCALAPPDATA%\Programs\<productName>\, so Alpha, Experimental, and Dev coexist on the same machine. The hook is emitted from scripts/build-desktop-artifact.ts via a per-stage install-dir-override.nsh that runs in customInit (after which SetOutPath sees the overridden $INSTDIR), and customUnInstallCheck / customUnInstallCheckCurrentUser short-circuit handleUninstallResult so the prior-version uninstaller exit code no longer triggers SetErrorLevel 2 / Quit. Without these hooks, silent install /S against an existing fork build falls into installUtil.nsh's UninstallLoop, retries the previous uninstaller five times, and finally surfaces the appCannotBeClosed dialog with /SD IDCANCEL.
Built and tested on Windows via corepack pnpm dist:desktop:win:x64 with T3CODE_DESKTOP_VERSION=0.0.42-fork-1. Model: Claude (pi-coding-agent).
* refactor(fork): derive desktop runtime identity from productName
The launcher previously hard-coded T3 Code (Experimental) / t3code-experimental across appId, URL scheme, appUserModelId, Chromium userData, NSIS INSTDIR, and t3Home. With per-productName builds (Alpha / Experimental / Dev) installed side by side, each of those values is now resolved from the packaged app.asar/package.json productName so that Alpha gets the historical t3code identity, Experimental keeps t3code-experimental, and Dev gets t3code-dev, while sharing the same source tree.
Touches DesktopApp / DesktopAppIdentity / DesktopClerk / DesktopEarlyElectronStartup / DesktopEnvironment / DesktopLinuxUrlHandler / DesktopPreReadyPlatform / DesktopStatePaths / DesktopUserData / DesktopBackendConfiguration / ElectronApp / ElectronProtocol / DesktopWindow / main.ts, plus the launcher script and its tests. New per-productName derivation tables live next to where each value is consumed; build-desktop-artifact.ts remains the single source of truth for the install-time side of the same map.
Verified via vp test run across the seven touched suites (62 tests pass) and by running the three productName builds through dist:desktop:win:x64 with T3CODE_DESKTOP_VERSION=0.0.42-fork-1; installed side-by-side in D:\t3code\alpha, D:\t3code\experimental, D:\t3code\dev with isolated Chromium userData and t3Home directories. Model: Claude (pi-coding-agent).
* chore(fork): add silent install helper for per-productName desktop builds
scripts/fork-build/install-fork.ps1 strips the HKCU\...\Uninstall key for the chosen productName before invoking the NSIS installer with /S. With no prior uninstall string for installOldVersion to find, the NSIS UninstallLoop in installUtil.nsh is skipped entirely, so the appCannotBeClosed dialog never appears and silent install completes on the first try without losing user data in ~/.t3-<stage>/userdata/.
Supports -Stage Alpha / Experimental / Dev / All, optional -Force to stop running T3 Code processes first, and optional -InstallerPath to override the default release/\T3-Code-T3Code<Stage>-*.exe glob. Docs in docs/operations/fork-build-and-install.md walk through identity derivation, build steps, install flow, and data migration for the three side-by-side productName builds.
Model: Claude (pi-coding-agent).
---------
Co-authored-by: fork-maintainer <fork-maintainer@local>
0 commit comments