跳到主要内容

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

提交记录
修改scripts/publish-platform-preview.mjs+4 −3看文件
@@ -67,7 +67,6 @@ async function main() {
6767 const tag = `desktop-preview-${version}`;
6868 const marker = `<!-- cage-platform-preview source=${run.head_sha} ci=${runID} -->`;
6969 const notes = `${marker}\n\nCage ${version} 的 Windows 与 Linux 安装包,来自同一份通过三平台 CI 的源码。macOS 安装包继续从 [v${version}](https://github.com/${repo}/releases/tag/v${version}) 下载。\n\n- **Windows:未签名预览版**,Windows 10 22H2 / Windows 11 x64。安装包名含 \`-unsigned.exe\`;系统可能提示未知发布者,请核对来源和 SHA256SUMS。该包需手动更新,不进入签名自动更新通道。\n- **Linux:Debian 12 / Ubuntu 24.04 x86_64**,下载 \`.deb\` 并通过系统包管理器安装。\n- Windows 2022/2025 runner 上的安装、WebView2、重装、卸载和数据保留检查通过;Debian 12 容器中的 GTK/WebKit、安装重装、运行中拒绝替换及卸载保留数据检查通过。托管 CI 不代替硬件虚拟化和所有真实设备的兼容性验证。\n- 附带 Mihomo、QEMU 主程序对应源码和 SHA256SUMS。升级前保存并停止 Cage 环境,用户配置及项目保留。\n\n[查看完整 CI](https://github.com/${repo}/actions/runs/${runID}) · [官网下载](https://lee-xeo.github.io/Claude-Cage/#download)\n\n源码:${run.head_sha}\n`;
70删除: const notesPath = join(root, 'notes.md'); writeFileSync(notesPath, notes);
7170 const releases = () => JSON.parse(gh(['api', '--paginate', '--slurp', `repos/${repo}/releases?per_page=100`])).flat();
7271 let release = releases().find(item => item.tag_name === tag);
7372 if (!release) {
@@ -75,8 +74,10 @@ async function main() {
7574 const ref = refs.find(item => item.ref === `refs/tags/${tag}`);
7675 if (ref) assert.equal(ref.object.sha, run.head_sha, 'Existing preview tag belongs to another commit');
7776 else api('git/refs', ['--method', 'POST', '-f', `ref=refs/tags/${tag}`, '-f', `sha=${run.head_sha}`]);
78删除: gh(['release', 'create', tag, '--repo', repo, '--verify-tag', '--draft', '--prerelease', '--latest=false', '--title', `Cage ${version} · Windows 未签名 / Linux 预览版`, '--notes-file', notesPath]);
79删除: release = releases().find(item => item.tag_name === tag);
77新增: const requestPath = join(root, 'release-request.json');
78新增: writeFileSync(requestPath, JSON.stringify({ tag_name: tag, name: `Cage ${version} · Windows 未签名 / Linux 预览版`, body: notes, draft: true, prerelease: true, make_latest: 'false' }));
79新增: // Use the creation response; the releases list can lag behind a new draft.
80新增: release = api('releases', ['--method', 'POST', '--input', requestPath]);
8081 }
8182 assert.ok(release && release.body.includes(marker), 'Release belongs to a different source/run');
8283 for (const [name, file] of files) {