Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9394c7a9c5 | ||
|
|
7e502420fa | ||
|
|
12f4b764de | ||
|
|
4da4b7d552 | ||
|
|
d38abbbaa0 | ||
|
|
67bf7f649e | ||
|
|
acb35403b0 | ||
|
|
7d5dccc649 |
6
.github/workflows/build-app.yml
vendored
6
.github/workflows/build-app.yml
vendored
@@ -21,11 +21,7 @@
|
||||
name: Build AUTO_MAA
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- 'LICENSE'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
6
.github/workflows/build-pre.yml
vendored
6
.github/workflows/build-pre.yml
vendored
@@ -21,11 +21,7 @@
|
||||
name: Build AUTO_MAA_Pre
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev" ]
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- 'LICENSE'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
@@ -599,7 +599,7 @@ class MaaUserConfig(QConfig):
|
||||
|
||||
class AppConfig(GlobalConfig):
|
||||
|
||||
VERSION = "4.3.1.0"
|
||||
VERSION = "4.3.3.0"
|
||||
|
||||
gameid_refreshed = Signal()
|
||||
PASSWORD_refreshed = Signal()
|
||||
|
||||
@@ -238,6 +238,13 @@ class AUTO_MAA(MSFluentWindow):
|
||||
# 清理旧日志
|
||||
self.clean_old_logs()
|
||||
|
||||
# 清理临时更新器
|
||||
if (Config.app_path / "AUTO_Updater.active.exe").exists():
|
||||
try:
|
||||
(Config.app_path / "AUTO_Updater.active.exe").unlink()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# 检查密码
|
||||
self.setting.check_PASSWORD()
|
||||
|
||||
@@ -399,11 +406,6 @@ class AUTO_MAA(MSFluentWindow):
|
||||
|
||||
self.show_ui("隐藏到托盘", if_quick=True)
|
||||
|
||||
# 清理临时更新器
|
||||
if (Config.app_path / "AUTO_Updater.active.exe").exists():
|
||||
System.kill_process(Config.app_path / "AUTO_Updater.active.exe")
|
||||
(Config.app_path / "AUTO_Updater.active.exe").unlink()
|
||||
|
||||
# 清理各功能线程
|
||||
MainTimer.Timer.stop()
|
||||
MainTimer.Timer.deleteLater()
|
||||
|
||||
@@ -340,7 +340,7 @@ class MemberManager(QWidget):
|
||||
for _ in range(3):
|
||||
try:
|
||||
response = requests.get(
|
||||
"https://mirrorchyan.com/api/resources/MAA/latest?user_agent=MaaWpfGui&os=win&arch=x64&channel=stable"
|
||||
"https://mirrorchyan.com/api/resources/MAA/latest?user_agent=AutoMaaGui&os=win&arch=x64&channel=stable"
|
||||
)
|
||||
maa_info = response.json()
|
||||
break
|
||||
@@ -372,7 +372,10 @@ class MemberManager(QWidget):
|
||||
Path(folder),
|
||||
"MAA",
|
||||
maa_version,
|
||||
{"thread_numb": Config.get(Config.update_ThreadNumb)},
|
||||
{
|
||||
"mode": "Proxy",
|
||||
"thread_numb": Config.get(Config.update_ThreadNumb),
|
||||
},
|
||||
)
|
||||
self.downloader.show()
|
||||
self.downloader.run()
|
||||
|
||||
@@ -271,7 +271,7 @@ class Setting(QWidget):
|
||||
for _ in range(3):
|
||||
try:
|
||||
response = requests.get(
|
||||
f"https://mirrorchyan.com/api/resources/AUTO_MAA/latest?current_version={version_text(current_version)}&cdk={Crypto.win_decryptor(Config.get(Config.update_MirrorChyanCDK))}&channel={Config.get(Config.update_UpdateType)}"
|
||||
f"https://mirrorchyan.com/api/resources/AUTO_MAA/latest?user_agent=AutoMaaGui¤t_version={version_text(current_version)}&cdk={Crypto.win_decryptor(Config.get(Config.update_MirrorChyanCDK))}&channel={Config.get(Config.update_UpdateType)}"
|
||||
)
|
||||
version_info: Dict[str, Union[int, str, Dict[str, str]]] = (
|
||||
response.json()
|
||||
@@ -404,8 +404,7 @@ class Setting(QWidget):
|
||||
shell=True,
|
||||
creationflags=subprocess.CREATE_NO_WINDOW,
|
||||
)
|
||||
self.close()
|
||||
QApplication.quit()
|
||||
self.window().close()
|
||||
|
||||
# 无版本更新
|
||||
else:
|
||||
|
||||
@@ -507,16 +507,16 @@ class DownloadManager(QDialog):
|
||||
self.zip_loop.exec()
|
||||
|
||||
self.update_info("正在删除已弃用的文件")
|
||||
if (app_path / "changes.json").exists():
|
||||
if (self.app_path / "changes.json").exists():
|
||||
|
||||
with (app_path / "changes.json").open(mode="r", encoding="utf-8") as f:
|
||||
with (self.app_path / "changes.json").open(mode="r", encoding="utf-8") as f:
|
||||
info: Dict[str, List[str]] = json.load(f)
|
||||
|
||||
if "deleted" in info:
|
||||
for file_path in info:
|
||||
(self.app_path / file_path).unlink()
|
||||
|
||||
(app_path / "changes.json").unlink()
|
||||
(self.app_path / "changes.json").unlink()
|
||||
|
||||
self.update_info("正在删除临时文件")
|
||||
self.update_progress(0, 0, 0)
|
||||
@@ -661,7 +661,7 @@ if __name__ == "__main__":
|
||||
for _ in range(3):
|
||||
try:
|
||||
response = requests.get(
|
||||
f"https://mirrorchyan.com/api/resources/AUTO_MAA/latest?current_version={version_text(current_version)}&cdk={mirrorchyan_CDK}&channel={update_type}"
|
||||
f"https://mirrorchyan.com/api/resources/AUTO_MAA/latest?user_agent=AutoMaaDownloader¤t_version={version_text(current_version)}&cdk={mirrorchyan_CDK}&channel={update_type}"
|
||||
)
|
||||
version_info: Dict[str, Union[int, str, Dict[str, str]]] = response.json()
|
||||
break
|
||||
|
||||
@@ -71,8 +71,9 @@ if __name__ == "__main__":
|
||||
print("Packaging AUTO_MAA main program ...")
|
||||
|
||||
os.system(
|
||||
"powershell -Command python -m nuitka --standalone --mingw64"
|
||||
"powershell -Command python -m nuitka --standalone --onefile --mingw64"
|
||||
" --enable-plugins=pyside6 --windows-console-mode=disable"
|
||||
" --onefile-tempdir-spec='{TEMP}\\AUTO_MAA'"
|
||||
" --windows-icon-from-ico=resources\\icons\\AUTO_MAA.ico"
|
||||
" --company-name='AUTO_MAA Team' --product-name=AUTO_MAA"
|
||||
f" --file-version={version["main_version"]}"
|
||||
@@ -107,19 +108,9 @@ if __name__ == "__main__":
|
||||
|
||||
(root_path / "AUTO_MAA").mkdir(parents=True, exist_ok=True)
|
||||
|
||||
print("Start to copy AUTO_MAA main program ...")
|
||||
|
||||
for item in (root_path / "main.dist").iterdir():
|
||||
if item.is_dir():
|
||||
shutil.copytree(
|
||||
item, root_path / "AUTO_MAA" / item.name, dirs_exist_ok=True
|
||||
)
|
||||
else:
|
||||
shutil.copy(item, root_path / "AUTO_MAA/")
|
||||
shutil.rmtree(root_path / "main.dist")
|
||||
|
||||
print("Start to copy AUTO_MAA update program ...")
|
||||
print("Start to move AUTO_MAA program ...")
|
||||
|
||||
shutil.move(root_path / "AUTO_MAA.exe", root_path / "AUTO_MAA/")
|
||||
shutil.move(root_path / "AUTO_Updater.exe", root_path / "AUTO_MAA/")
|
||||
|
||||
print("Start to copy rescourses ...")
|
||||
|
||||
@@ -1,9 +1,22 @@
|
||||
{
|
||||
"main_version": "4.3.1.0",
|
||||
"main_version": "4.3.3.0",
|
||||
"updater_version": "1.0.0.0",
|
||||
"announcement": "\n## 新增功能\n- 屏蔽MuMu模拟器开屏广告功能上线\n- 更新器支持多线程下载\n- 添加强制关闭ADB与模拟器等增强任务项\n## 修复BUG\n- 修复统计信息HTML模板公招匹配错误\n- 修复密码显示按钮动画异常\n- 修复`检测到MAA未能实际执行任务`报错被异常屏蔽\n- 修复MAA超时判定异常失效\n## 程序优化\n- 关机等电源操作添加100s倒计时\n- 人工排查弹窗方法优化\n- 人工排查时自动屏蔽静默操作\n- 公告样式优化",
|
||||
"version_info": {
|
||||
"4.3.1.0":{
|
||||
"4.3.3.0": {
|
||||
"修复BUG": [
|
||||
"修复更新器无法下载MAA的异常"
|
||||
],
|
||||
"程序优化": [
|
||||
"自动发版改为手动触发"
|
||||
]
|
||||
},
|
||||
"4.3.2.0": {
|
||||
"修复BUG": [
|
||||
"修复更新器无法启动的异常"
|
||||
]
|
||||
},
|
||||
"4.3.1.0": {
|
||||
"修复BUG": [
|
||||
"覆盖规避v4.3.0错误包"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user