跳到主要内容

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

浏览文件

licenses.sh

40 行 · 1.8 KB历史下载
1#!/bin/bash
2# Bundle notices for the linked mobile dependencies and bundled interface.
3set -euo pipefail
4mobile_dir="$(cd "$(dirname "$0")/.." && pwd)"
5cd "$mobile_dir/bindings"
6output="$mobile_dir/.build/resources/licenses"
7mkdir -p "$output"
8list="$(mktemp)"
9trap 'rm -f "$list"' EXIT
10# Both gomobile targets share the bundled notices.
11for target in android ios; do
12 GOOS="$target" GOARCH=arm64 CGO_ENABLED=1 go list -deps -f '{{with .Module}}{{.Path}}{{"\t"}}{{.Version}}{{"\t"}}{{.Dir}}{{end}}' .
13done | awk -F '\t' 'NF == 3 && !seen[$1]++' | LC_ALL=C sort > "$list"
14{
15 cat <<'NOTICE'
16Cage mobile third-party notices
17
18Cage mobile source and build scripts: https://github.com/Lee-xeo/claude-cage
19The licenses of the linked Go modules are included below.
20
21NOTICE
22 go_license="$(go env GOROOT)/LICENSE"
23 [[ -f "$go_license" ]] || go_license="$(go env GOROOT)/../LICENSE"
24 cat "$go_license"
25 while IFS=$'\t' read -r path version directory; do
26 for file in "$directory"/LICENSE* "$directory"/LICENCE* "$directory"/COPYING* "$directory"/NOTICE* "$directory"/UNLICENSE*; do
27 [[ -f "$file" ]] || continue
28 printf '\n======== %s %s: %s ========\n\n' "$path" "$version" "$(basename "$file")"
29 cat "$file"
30 done
31 done < "$list"
32} > "$output/THIRD_PARTY_NOTICES.txt"
33for package in react react-dom scheduler lucide-react; do
34 cp "$mobile_dir/../ui/node_modules/$package/LICENSE" "$output/$package-LICENSE.txt"
35done
36cp "$mobile_dir/../ui/node_modules/marked/LICENSE" "$output/Marked-LICENSE.txt"
37cp "$mobile_dir/android/licenses/ZXing-LICENSE.txt" "$output/ZXing-LICENSE.txt"
38if [[ -f "$mobile_dir/.build/android/webkit-1.14.0.aar" ]]; then
39 unzip -p "$mobile_dir/.build/android/webkit-1.14.0.aar" META-INF/androidx/webkit/webkit/LICENSE.txt > "$output/AndroidX-LICENSE.txt"
40fi