From 179b33387ea7b044b13406a3ca96e56e4f9263c9 Mon Sep 17 00:00:00 2001 From: DLmaster Date: Sun, 10 Nov 2024 01:46:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=B8=BB=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E6=89=93=E5=BC=80AUTO=5FMAA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Updater.py | 8 ++++++++ res/version.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Updater.py b/Updater.py index 83eca97..5cdd1ae 100644 --- a/Updater.py +++ b/Updater.py @@ -30,6 +30,7 @@ import sys import json import zipfile import requests +import subprocess from PySide6.QtWidgets import ( QApplication, @@ -118,6 +119,13 @@ class UpdateProcess(QThread): with open(self.version_path, "w", encoding="utf-8") as f: json.dump(version_info, f, indent=4) + if self.name == "AUTO_MAA主程序": + subprocess.Popen( + f"{self.app_path}/AUTO_MAA.exe", + shell=True, + creationflags=subprocess.CREATE_NO_WINDOW, + ) + self.accomplish.emit() diff --git a/res/version.json b/res/version.json index 3cd77c6..e4a00c5 100644 --- a/res/version.json +++ b/res/version.json @@ -3,5 +3,5 @@ "main_download_url": "https://ghp.ci/https://github.com/DLmaster361/AUTO_MAA/releases/download/v4.1.2_beta/AUTO_MAA_v4.1.2_beta.zip", "updater_version": "1.0.4.0", "updater_download_url": "https://ghp.ci/https://github.com/DLmaster361/AUTO_MAA/releases/download/v4.1.2_beta/Updater_v1.0.4.zip", - "announcement": "\n# 公测版,若出现问题请及时反馈给项目组!\n## 新增功能\n- 添加`启动AUTO_MAA后直接代理`功能\n- 添加无限代理天数模式\n## 修复BUG\n- 通过限制日志长度解决卡日志情况 #8\n- 修复tips链接无法打开问题 #9\n- 修复正常退出窗口显示停止工作问题 #9\n- 修复解压失败时本地版本号异常变动问题\n- 修复无`version.json`时更新器无法更新的问题\n- 修复未设置管理密钥时添加用户报错\n## 程序优化\n- Updater.exe图标更换\n- 更新逻辑优化\n- GUI窗口逻辑优化\n- 添加更多注释" + "announcement": "\n# 公测版,若出现问题请及时反馈给项目组!\n## 新增功能\n- 添加`启动AUTO_MAA后直接代理`功能\n- 添加无限代理天数模式\n- 完成主程序更新后打开AUTO_MAA\n## 修复BUG\n- 通过限制日志长度解决卡日志情况 #8\n- 修复tips链接无法打开问题 #9\n- 修复正常退出窗口显示停止工作问题 #9\n- 修复解压失败时本地版本号异常变动问题\n- 修复无`version.json`时更新器无法更新的问题\n- 修复未设置管理密钥时添加用户报错\n## 程序优化\n- Updater.exe图标更换\n- 更新逻辑优化\n- GUI窗口逻辑优化\n- 添加更多注释" } \ No newline at end of file