1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-09 20:04:52 +00:00

fix: Adapt for AAS

This commit is contained in:
2023-11-01 17:04:20 +08:00
parent 6860f2eb72
commit 3c4c9a6d61
11 changed files with 106 additions and 55 deletions
+3 -3
View File
@@ -1108,9 +1108,9 @@ class AlasGUI(Frame):
# show something
put_markdown(
"""
SRC is a free open source software, if you paid for SRC from any channel, please refund.
SRC 是一款免费开源软件,如果你在任何渠道付费购买了SRC,请退款。
Project repository 项目地址:`https://github.com/LmeSzinc/StarRailCopilot`
AAS is a free open source software, if you paid for AAS from any channel, please refund.
AAS 是一款免费开源软件,如果你在任何渠道付费购买了AAS,请退款。
Project repository 项目地址:`https://github.com/TheFunny/ArisuAutoSrcipt`
"""
).style("text-align: center")
+11 -11
View File
@@ -69,17 +69,17 @@ class Updater(DeployConfig, GitManager, PipManager):
def _check_update(self) -> bool:
self.state = "checking"
if State.deploy_config.GitOverCdn:
status = self.goc_client.get_status()
if status == "uptodate":
logger.info(f"No update")
return False
elif status == "behind":
logger.info(f"New update available")
return True
else:
# failed, should fallback to `git pull`
pass
# if State.deploy_config.GitOverCdn:
# status = self.goc_client.get_status()
# if status == "uptodate":
# logger.info(f"No update")
# return False
# elif status == "behind":
# logger.info(f"New update available")
# return True
# else:
# # failed, should fallback to `git pull`
# pass
source = "origin"
for _ in range(3):