Skip to content

Commit

Permalink
更新版本号至 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Mar 15, 2024
1 parent d926881 commit 997434f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Config(QConfig):

careerGamesNumber = RangeConfigItem("Functions", "CareerGamesNumber", 20,
RangeValidator(10, 60))
apiConcurrencyNumber = RangeConfigItem("Functions", "ApiConcurrencyNumber", 2,
apiConcurrencyNumber = RangeConfigItem("Functions", "ApiConcurrencyNumber", 1,
RangeValidator(1, 5), restart=True)

gameInfoFilter = ConfigItem(
Expand Down Expand Up @@ -125,7 +125,7 @@ class Config(QConfig):

YEAR = 2023
AUTHOR = "Zaphkiel"
VERSION = "0.10.3"
VERSION = "0.11.0"
FEEDBACK_URL = "https://github.com/Zzaphkiel/Seraphine/issues?q=is%3Aissue"
GITHUB_URL = "https://github.com/Zzaphkiel/Seraphine"
LOCAL_PATH = f"{os.getenv('APPDATA')}\\Seraphine"
Expand Down
9 changes: 9 additions & 0 deletions app/components/message_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ def __initLayout(self):

@asyncSlot()
async def __onYesButtonClicked(self):
'''
该函数负责
1. 删除 `LOCAL_PATH` 中之前可能下载过的文件
2. 重新下载新版本压缩包
3. 解压缩,并删除压缩包
4. 释放并运行 bat 文件,关闭自己
5. 删除当前文件夹下的自己,并将解压好的新版本拷贝进来
6. 重新运行自己
'''
url = f"{github.proxyApi}/{self.info['assets'][0]['browser_download_url']}"
self.myYesButton.setEnabled(False)
self.myCancelButton.setEnabled(False)
Expand Down

0 comments on commit 997434f

Please sign in to comment.