Skip to content

Commit

Permalink
删除versions.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajiaxd committed Jan 28, 2025
1 parent e6ef008 commit 21c2e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 103 deletions.
7 changes: 5 additions & 2 deletions utils/cloud_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,18 @@ def checkVersion():
logger.error('由于服务端内部错误,无法检测版本')
return False
response = response.json()

if response['broadcast']:
logger.info('Steamauto 官方公告:\n'+parseBroadcastMessage(response['broadcast']))

if not response['latest']:
logger.warning(f'当前版本不是最新版本 最新版本为{response["latestVersion"]}')
else:
logger.info('当前版本为最新版本')
return True
logger.info('更新日志:\n'+response['changelog'])

if response['broadcast']:
logger.info('Steamauto 官方公告:\n'+parseBroadcastMessage(response['broadcast']))


if response['significance'] == 'minor':
logger.info('最新版本为小版本更新')
Expand Down
101 changes: 0 additions & 101 deletions versions.json

This file was deleted.

0 comments on commit 21c2e1c

Please sign in to comment.