改用 Gitea 仓库地址

This commit is contained in:
typist committed 2026-11-01 06:51:56 +08:00
1 parent 237b958e41
commit 79fe594385
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@
一条命令安装 `sbp` 命令: 一条命令安装 `sbp` 命令:
```bash ```bash
curl -fsSL https://raw.githubusercontent.com/justypist/sbp/main/install.sh | bash curl -fsSL https://gitea.typist.cc/typist/sbp/raw/branch/main/install.sh | bash
sbp sbp
``` ```
@@ -18,7 +18,7 @@ sbp
安装后运行 `sbp install` 搭建服务. 也可以让安装脚本直接搭建: 安装后运行 `sbp install` 搭建服务. 也可以让安装脚本直接搭建:
```bash ```bash
curl -fsSL https://raw.githubusercontent.com/justypist/sbp/main/install.sh | bash -s -- --run curl -fsSL https://gitea.typist.cc/typist/sbp/raw/branch/main/install.sh | bash -s -- --run
``` ```
依赖: Linux, systemd user, openssl, python3 3.9 或更高版本, curl. 网络必须能访问 GitHub. 依赖: Linux, systemd user, openssl, python3 3.9 或更高版本, curl. 网络必须能访问 GitHub.
+2 -2
View File
@@ -1,11 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
repo="${SBP_REPO:-justypist/sbp}" repo="${SBP_REPO:-typist/sbp}"
branch="${SBP_BRANCH:-main}" branch="${SBP_BRANCH:-main}"
app_dir="${SBP_APP_DIR:-$HOME/.local/share/sbp/app}" app_dir="${SBP_APP_DIR:-$HOME/.local/share/sbp/app}"
bin_dir="${SBP_BIN:-$HOME/.local/bin}" bin_dir="${SBP_BIN:-$HOME/.local/bin}"
url="https://github.com/${repo}/archive/refs/heads/${branch}.tar.gz" url="${SBP_BASE:-https://gitea.typist.cc}/${repo}/archive/${branch}.tar.gz"
command -v curl >/dev/null 2>&1 || { echo "error: curl is required" >&2; exit 1; } command -v curl >/dev/null 2>&1 || { echo "error: curl is required" >&2; exit 1; }
command -v tar >/dev/null 2>&1 || { echo "error: tar is required" >&2; exit 1; } command -v tar >/dev/null 2>&1 || { echo "error: tar is required" >&2; exit 1; }