mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
chore: 修复某些情况下 maadeps-download.py 抛异常的问题
This commit is contained in:
@@ -94,9 +94,10 @@ def retry_urlopen(*args, **kwargs):
|
||||
|
||||
|
||||
def main():
|
||||
target_triplet = detect_host_triplet()
|
||||
if len(sys.argv) == 2:
|
||||
target_triplet = sys.argv[1]
|
||||
else:
|
||||
target_triplet = detect_host_triplet()
|
||||
print("about to download prebuilt dependency libraries for", target_triplet)
|
||||
if len(sys.argv) == 1:
|
||||
print(f"to specify another triplet, run `{sys.argv[0]} <target triplet>`")
|
||||
|
||||
Reference in New Issue
Block a user