跳到主要内容

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

浏览文件

macos-fuse-media.sh

19 行 · 741 B历史下载
1#!/bin/bash
2# Extract the pinned vendor installer on the host. Nothing is installed here.
3set -euo pipefail
4[[ $# == 2 && $1 == /* && $2 == /* && ! -e $2 ]]
5work=$(mktemp -d)
6volume="$work/volume"
7attached=0
8cleanup() {
9 if [[ $attached == 1 ]]; then hdiutil detach "$volume" >/dev/null || return; fi
10 rm -rf "$work"
11}
12trap cleanup EXIT
13mkdir "$volume"
14[[ $(shasum -a 256 "$1" | cut -d' ' -f1) == 92c21ef2db4199bcf5bddc8e6efb57b23ecb9715f74ab38cba2c77ab226d3830 ]]
15hdiutil attach -readonly -nobrowse -noautoopen -mountpoint "$volume" "$1" >/dev/null
16attached=1
17pkg="$volume/Install macFUSE.pkg"
18[[ -n $pkg && $(shasum -a 256 "$pkg" | cut -d' ' -f1) == 5acf9e30bab227707de8d15eb28472a0cc9ed45709846b3e067d283294dc7f9e ]]
19cp "$pkg" "$2"