From 79fe594385cc9c57b35e194f350aaac2a6b7cad3 Mon Sep 17 00:00:00 2001 From: typist <1003659191@qq.com> Date: Sun, 1 Nov 2026 06:51:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=94=A8=20Gitea=20=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bc3bc8c..9c44f65 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ 一条命令安装 `sbp` 命令: ```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 ``` @@ -18,7 +18,7 @@ sbp 安装后运行 `sbp install` 搭建服务. 也可以让安装脚本直接搭建: ```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. diff --git a/install.sh b/install.sh index 876ca20..0b26e6a 100755 --- a/install.sh +++ b/install.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash set -euo pipefail -repo="${SBP_REPO:-justypist/sbp}" +repo="${SBP_REPO:-typist/sbp}" branch="${SBP_BRANCH:-main}" app_dir="${SBP_APP_DIR:-$HOME/.local/share/sbp/app}" 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 tar >/dev/null 2>&1 || { echo "error: tar is required" >&2; exit 1; }