cc-haha/desktop/src-tauri/windows-installer-hooks.nsh
Relakkes Yang 5d243b657a feat(desktop): Windows 自定义标题栏 & 服务端改进
- Windows 上隐藏原生菜单栏和窗口装饰,前端渲染自定义窗口控制按钮(最小化/最大化/关闭)
- macOS 保持原生菜单栏不变(条件编译)
- Sidebar 在 Windows 上不再添加 macOS 红绿灯的额外顶部间距
- 新增 Windows 构建脚本和 NSIS 安装钩子
- 服务端 CORS、会话服务、对话服务改进及测试补充

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 21:29:35 +08:00

18 lines
517 B
NSIS

!macro NSIS_HOOK_PREINSTALL
DetailPrint "Stopping running Claude Code Haha processes..."
nsExec::ExecToLog 'taskkill /F /T /IM claude-code-desktop.exe'
Pop $0
nsExec::ExecToLog 'taskkill /F /T /IM claude-sidecar.exe'
Pop $0
Sleep 1000
!macroend
!macro NSIS_HOOK_PREUNINSTALL
DetailPrint "Stopping running Claude Code Haha processes..."
nsExec::ExecToLog 'taskkill /F /T /IM claude-code-desktop.exe'
Pop $0
nsExec::ExecToLog 'taskkill /F /T /IM claude-sidecar.exe'
Pop $0
Sleep 1000
!macroend