Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
优化检查更新
Browse files Browse the repository at this point in the history
  • Loading branch information
shing-yu committed Oct 28, 2023
1 parent 6c7ffa3 commit 59dcf04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,12 @@ def check_update(now_version):
release_info = response.json()
if "tag_name" in release_info:
latest_version = release_info["tag_name"]
release_describe = release_info["body"]
print(f"最新的发行版是:v{latest_version}")
result = compare_versions(now_version, latest_version)
if result == -1:
print("检测到新版本\n更新可用!请到 https://gitee.com/xingyv1024/fanqie-novel-download/releases 下载最新版")
print(f"更新内容:\n{release_describe}")
input("按Enter键继续...\n")
else:
print("您正在使用最新版")
Expand Down

0 comments on commit 59dcf04

Please sign in to comment.