mirror of
https://github.com/ikunshare/Onekey.git
synced 2026-01-12 16:25:53 +08:00
优化代码
This commit is contained in:
20
main.py
20
main.py
@@ -8,23 +8,25 @@ from common.init_text import init
|
||||
from common.main_func import main
|
||||
|
||||
lock = asyncio.Lock()
|
||||
|
||||
init()
|
||||
|
||||
repos = [
|
||||
'ikun0014/ManifestHub',
|
||||
'Auiowu/ManifestAutoUpdate',
|
||||
'tymolu233/ManifestAutoUpdate'
|
||||
]
|
||||
'ikun0014/ManifestHub',
|
||||
'Auiowu/ManifestAutoUpdate',
|
||||
'tymolu233/ManifestAutoUpdate'
|
||||
]
|
||||
|
||||
def get_app_id():
|
||||
log.info('App ID可以在SteamDB或Steam商店链接页面查看')
|
||||
return input("请输入游戏AppID:").strip()
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
while True:
|
||||
log.info('App ID可以在SteamDB或Steam商店链接页面查看')
|
||||
app_id = input("请输入游戏AppID:").strip()
|
||||
app_id = get_app_id()
|
||||
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')
|
||||
time.sleep(5)
|
||||
Reference in New Issue
Block a user