From 4aad04b31acae8a29986502f6ba47ceb303a4e92 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Mon, 3 Apr 2023 18:35:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=99=A8=E7=9A=84=E4=B8=80=E4=BA=9B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- launcher.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/launcher.py b/launcher.py index bfbd4f65d..956959f0d 100644 --- a/launcher.py +++ b/launcher.py @@ -47,18 +47,19 @@ if __name__ == "__main__": if commit_hash != remote_commit_hash: res = input("检测到项目有更新, 是否更新? (y/n): ") if res == 'y': - repo.remotes.origin.pull() + repo.remote().pull() print("项目更新完毕") if res == 'n': print("已取消更新") except: print("正在从https://github.com/Soulter/QQChannelChatGPT.git拉取项目...") - Repo.clone_from('https://github.com/Soulter/QQChannelChatGPT.git',to_path=project_path,branch='61-enhancement-重构代码增强稳定性') + Repo.clone_from('https://github.com/Soulter/QQChannelChatGPT.git',to_path=project_path,branch='master') print("项目拉取完毕") - print("【重要提醒】如果你没有Python环境, 请先安装Python环境! 否则接下来的操作会造成闪退。") + print("【重要提醒】如果你没有Python环境, 请先安装Python环境,版本需大于等于3.9, 否则接下来的操作会造成闪退。") print("【重要提醒】Python3.9淘宝下载地址: https://npm.taobao.org/mirrors/python/3.9.7/python-3.9.7-amd64.exe ") print("【重要提醒】安装时, 请务必勾选“Add Python 3.9 to PATH”选项。") print("【重要提醒】QQ: 905617992") + print("【重要提醒】欢迎给项目Star:) https://github.com/Soulter/QQChannelChatGPT") input("已确保安装了Python3.9+的版本,按下回车继续...") print("正在安装依赖库...") os.system('python -m pip install -r QQChannelChatGPT\\requirements.txt')