mirror of
https://github.com/ikunshare/Onekey.git
synced 2026-01-13 00:27:32 +08:00
34 lines
925 B
Python
34 lines
925 B
Python
import os
|
||
import time
|
||
import asyncio
|
||
|
||
from colorama import Fore, Back, Style
|
||
from colorama import init as cinit
|
||
from common.log import log
|
||
from common.stack_error import stack_error
|
||
from common.init_text import init
|
||
from common.main_func import main
|
||
|
||
lock = asyncio.Lock()
|
||
|
||
init()
|
||
cinit()
|
||
|
||
repos = [
|
||
'ikun0014/ManifestHub',
|
||
'Auiowu/ManifestAutoUpdate',
|
||
'tymolu233/ManifestAutoUpdate',
|
||
]
|
||
|
||
if __name__ == '__main__':
|
||
try:
|
||
log.info('❗ App ID可以在SteamDB或Steam商店链接页面查看')
|
||
while True:
|
||
app_id = input(f"{Fore.CYAN}{Back.BLACK}{Style.BRIGHT}🤔 请输入游戏AppID:{Style.RESET_ALL}").strip()
|
||
asyncio.run(main(app_id, repos))
|
||
except KeyboardInterrupt:
|
||
exit()
|
||
except Exception as e:
|
||
log.error(f' ⚠ 发生错误: {stack_error(e)},将在5秒后退出')
|
||
time.sleep(5)
|
||
os.system('pause') |