跳到主要内容

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

浏览文件

homebrew-macos.yaml

42 行 · 1.3 KB历史下载
1# Homebrew on macOS.
2#
3# Useful for sandboxing `brew` in an isolated environment.
4
5minimumLimaVersion: 2.1.0
6
7base:
8- template:_images/macos
9# Remove this line to disable the mounts
10- template:_default/mounts
11
12# The macOS installer seems to require the display device to be present.
13video:
14 display: "default"
15
16message: |
17 The user password for GUI session is stored in the `~/password` file in the guest.
18 Consider changing it after the first login.
19
20provision:
21- mode: data
22 path: /usr/local/bin/lima-sudo-askpass.sh
23 permissions: 755
24 content: |
25 #!/bin/sh
26 set -eu
27 # This script is expected to be used only for the initial setup.
28 # This script stops working after the user changes the password.
29 cat "$HOME/password"
30- mode: user
31 script: |
32 #!/bin/bash
33 set -eux -o pipefail
34 [ -e /opt/homebrew ] && exit 0
35 curl -o homebrew-install.sh -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
36 SUDO_ASKPASS=/usr/local/bin/lima-sudo-askpass.sh NONINTERACTIVE=1 /bin/bash homebrew-install.sh
37 rm -f homebrew-install.sh
38 # No /etc/profile.d on macOS
39 echo >> ~/.zprofile
40 echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofile
41 echo >> ~/.bash_profile
42 echo 'eval "$(/opt/homebrew/bin/brew shellenv bash)"' >> ~/.bash_profile