跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

提交记录
修改scripts/test-windows-install.ps1+5 −1看文件
@@ -109,11 +109,15 @@ Assert-PersonalData
109109$uninstall = Start-Process -FilePath (Join-Path $target 'Uninstall.exe') -ArgumentList @('/S') -PassThru
110110if (-not $uninstall.WaitForExit(120000) -or $uninstall.ExitCode -ne 0) { throw 'Uninstall failed.' }
111111# NSIS may relaunch its uninstaller from TEMP so that it can delete the original.
112新增:# The launcher can disappear before the worker clears registration and shortcuts.
112113$deadline = [DateTime]::UtcNow.AddSeconds(120)
113删除:while ((Test-Path -LiteralPath (Join-Path $target 'Uninstall.exe')) -and [DateTime]::UtcNow -lt $deadline) { Start-Sleep -Milliseconds 200 }
114新增:while (((Test-Path -LiteralPath $target) -or (Test-Path $savedKey) -or
115新增: (Test-Path -LiteralPath $desktopShortcut) -or (Test-Path -LiteralPath $startMenuDirectory)) -and
116新增: [DateTime]::UtcNow -lt $deadline) { Start-Sleep -Milliseconds 200 }
114117if (Test-Path -LiteralPath (Join-Path $target 'Cage.exe')) { throw 'Uninstall left Cage.exe behind.' }
115118if (Test-Path -LiteralPath (Join-Path $target 'Uninstall.exe')) { throw 'Uninstall left its launcher behind.' }
116119if (Test-Path -LiteralPath $target) { throw 'Uninstall left packaged files or directories that would block installation into the same folder.' }
120新增:if (Test-Path $savedKey) { throw 'Uninstall left the Cage registration behind.' }
117121Assert-PersonalData
118122Assert-Shortcuts $false $false
119123Write-Host 'Install, WebView2 workbench, reinstall, uninstall and user-data preservation passed. VM startup was not tested.'