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
feat(installer): add standalone Windows .exe installer (vp-setup.exe)
Add a standalone `vp-setup.exe` Windows installer that installs the vp
CLI without requiring PowerShell, complementing the existing `install.ps1`.
Architecture:
- New `vite_setup` shared library crate extracting installation logic
(platform detection, registry queries, integrity verification, tarball
extraction, symlink/junction management) from `vite_global_cli`
- New `vite_installer` binary crate producing `vp-setup.exe`
Features:
- Interactive menu with customize submenu (version, registry, Node.js
manager, PATH modification)
- Silent mode via `-y` or auto-detected CI environment
- Node.js manager auto-detection matching install.ps1/install.sh logic
- Same-version repair (skips download, reruns post-activation setup)
- Windows PATH modification via `winreg` crate
- DLL security mitigations (build.rs linker flag + runtime SetDefaultDllDirectories)
- ANSI color support with fallback for legacy Windows consoles
- Respects NO_COLOR env var
- Post-activation steps are best-effort (non-fatal)
- "Press Enter to close..." pause in interactive mode
- VP_HOME propagated to child processes for custom install dirs
CI:
- Build + cache installer in release workflow
- Attach as GitHub Release assets
- Test job in test-standalone-install.yml
Docs:
- RFC at rfcs/windows-installer.md
- Installation guide updated with vp-setup.exe download link
- SmartScreen warning guide added
Closes#1293
0 commit comments