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:
+3
-3
@@ -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
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user