1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-05 07:50:23 +08:00

fixes for updates

This commit is contained in:
Escartem
2025-02-03 11:56:44 +01:00
parent 820b0eec4c
commit cbf36d5d88
5 changed files with 5 additions and 6 deletions

5
app.py
View File

@@ -100,12 +100,11 @@ class UpdaterWorker(QObject):
for i in range(n_games):
current = currentMaps["maps"][i]
latest = latestMaps["maps"][i]
name = f"maps/{latest['name']}"
if ver(current["version"]) < ver(latest["version"]):
if (ver(current["version"]) < ver(latest["version"])) or not os.path.isfile(name):
self.progress.emit([5 + game_size * i, f'Updating {latest["game"]} to {latest["version"]}'])
name = f"maps/{latest['name']}"
url = f"https://raw.githubusercontent.com/Escartem/AnimeWwise/master/{name}"
urllib.request.urlretrieve(url, "maps/temp.map")

Binary file not shown.

Binary file not shown.

View File

@@ -3,17 +3,17 @@
{
"name": "hk4e.map",
"game": "Genshin Impact",
"version": "5.3"
"version": "5.2"
},
{
"name": "hkrpg.map",
"game": "Honkai: Star Rail",
"version": "3.0"
"version": "2.6"
},
{
"name": "nap.map",
"game": "Zenless Zone Zero",
"version": "1.4"
"version": "1.2"
}
]
}

Binary file not shown.