From 18671264bfe52e104c5132b0a3e932de5e217505 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 25 Dec 2023 22:05:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20config.sh=20=E4=B8=AD=20Pi?= =?UTF-8?q?pMirror=20=E5=92=8C=20NpmMirror=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/config.sample.sh | 6 ------ shell/bot.sh | 3 --- shell/check.sh | 8 -------- shell/share.sh | 2 -- 4 files changed, 19 deletions(-) diff --git a/sample/config.sample.sh b/sample/config.sample.sh index 5e163d49..42416936 100644 --- a/sample/config.sample.sh +++ b/sample/config.sample.sh @@ -41,12 +41,6 @@ AutoStartBot="" ## 是否使用第三方bot,默认不使用,使用时填入仓库地址,存到ql/repo目录下,文件夹命名为diybot BotRepoUrl="" -## 安装python依赖时指定pip源 -PipMirror="" - -## 安装node依赖时指定npm源 -NpmMirror="" - ## 通知环境变量 ## 1. Server酱 ## https://sct.ftqq.com diff --git a/shell/bot.sh b/shell/bot.sh index d3a7ef3f..f30cad26 100755 --- a/shell/bot.sh +++ b/shell/bot.sh @@ -25,9 +25,6 @@ fi echo -e "\nbot文件下载成功...\n" echo -e "3、安装python3依赖...\n" -if [[ $PipMirror ]]; then - pip3 config set global.index-url $PipMirror -fi cp -f "$repo_path/jbot/requirements.txt" "$dir_data" cd $dir_data diff --git a/shell/check.sh b/shell/check.sh index 0913b81e..4486279b 100755 --- a/shell/check.sh +++ b/shell/check.sh @@ -76,14 +76,6 @@ main() { npm i -g pnpm@8.3.1 pm2 tsx patch_version - if [[ $PipMirror ]]; then - pip3 config set global.index-url $PipMirror - fi - if [[ $NpmMirror ]]; then - cd && pnpm config set registry $NpmMirror - pnpm install -g - fi - reset_env copy_dep check_ql diff --git a/shell/share.sh b/shell/share.sh index 320b8ff0..403804a1 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -361,8 +361,6 @@ format_timestamp() { patch_version() { git config --global pull.rebase false - cp -f $dir_root/.env.example $dir_root/.env - if [[ -f "$dir_root/db/cookie.db" ]]; then echo -e "检测到旧的db文件,拷贝为新db...\n" mv $dir_root/db/cookie.db $dir_root/db/env.db