mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
fix: match the correct file suffix
This commit is contained in:
committed by
Horror Proton
parent
2c3bbea19a
commit
b89b3d44fd
@@ -154,7 +154,7 @@ class Updater:
|
||||
assets_name = assets["name"] # 示例值:MAA-v4.24.0-beta.1-win-arm64.zip
|
||||
# 正则匹配(用于选择当前系统及架构的版本)
|
||||
# 在线等一个不这么蠢的方法
|
||||
pattern = r"^MAA-.*" + re.escape(system_platform)
|
||||
pattern = r"^MAA-.*-" + re.escape(system_platform) + r"\.(zip|tar\.gz)$"
|
||||
match = re.match(pattern, assets_name)
|
||||
if match:
|
||||
# Mirrors镜像列表
|
||||
|
||||
Reference in New Issue
Block a user