跳到主要内容

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

浏览文件

build-macos-sshfs.sh

16 行 · 847 B历史下载
1#!/bin/bash
2# Build the FSKit-compatible SSHFS against the SDK from the signed macFUSE
3# installer. Pass its extracted usr/local directory; no host driver is installed.
4set -euo pipefail
5[[ ( $# == 2 || $# == 3 ) && $(uname -sm) == 'Darwin arm64' ]] || { echo 'Usage: build-macos-sshfs.sh /absolute/macfuse-sdk/usr/local /absolute/cage-sshfs [/absolute/source-materials]' >&2; exit 2; }
6sdk=$1
7output=$2
8script_dir=$(cd "$(dirname "$0")" && pwd)
9[[ $sdk == /* && $output == /* && -f $sdk/include/fuse3/fuse.h && ! -e $output ]]
10work=$(mktemp -d)
11trap 'rm -rf "$work"' EXIT
12materials=${3:-$work/source}
13node "$script_dir/collect-macos-sshfs-sources.mjs" prepare "$sdk" "$materials"
14bash "$script_dir/rebuild-macos-sshfs.sh" "$materials" "$sdk" "$work/cage-sshfs"
15codesign -s - --force "$work/cage-sshfs"
16install -m 755 "$work/cage-sshfs" "$output"