From adf4f9d93a6d204c88a5fb59e729d93b3f02b1dd Mon Sep 17 00:00:00 2001 From: eddy Date: Sun, 19 Jul 2026 21:17:51 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=86=E9=83=A8=E7=BD=B2=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=8B=89=E5=8F=96=E6=BA=90=E4=BB=8E=20GitHub=20?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=B8=BA=20Gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 REPO_ARCHIVE_URL 指向 Gitea 归档地址,替换原 GitHub 地址 - 同步把下载提示文案从「GitHub」改为「Gitea」 --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 82fda61..dee503a 100644 --- a/deploy.sh +++ b/deploy.sh @@ -2,7 +2,7 @@ set -Eeuo pipefail -REPO_ARCHIVE_URL="https://github.com/ghuang-top/AI_English/archive/refs/heads/main.tar.gz" +REPO_ARCHIVE_URL="https://gitea.tohub.top/Share/AI_English/archive/main.tar.gz" TARGET_DIR="/root/data/docker_data/Nginx/html/english/ai" PRESERVED_NAME="data" @@ -72,7 +72,7 @@ deploy() ( archive_file="$temp_dir/repository.tar.gz" trap 'rm -rf -- "$temp_dir"' EXIT - print_info "正在从 GitHub 下载最新版本..." + print_info "正在从 Gitea 下载最新版本..." if ! curl -fL --retry 3 --connect-timeout 15 "$REPO_ARCHIVE_URL" -o "$archive_file"; then print_error "仓库下载失败,请检查网络连接后重试" return 1