Skip to content

Commit 9840022

Browse files
committed
Fixed util file download
1 parent 305c2d9 commit 9840022

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/updaterLib/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def downloadNewVersion(versionString, softwareName, legacyMode, tag):
2222
with open(softwareName + ".exe.bak", 'wb') as f:
2323
f.write(oldExec)
2424

25-
if not os.path.exists(softwareName + ".png"):
26-
r = requests.get("https://github.com/" + GITHUB_USER + "/" + GITHUB_REPO + "/releases/download/util/" + softwareName + ".png")
25+
if not os.path.exists("VexTrack.png"):
26+
r = requests.get("https://github.com/" + GITHUB_USER + "/" + GITHUB_REPO + "/releases/download/util/VexTrack.png")
2727

28-
with open(softwareName + ".png", "wb") as f:
29-
f.write(r)
28+
with open("VexTrack.png", "wb") as f:
29+
f.write(r.content)
3030

3131
url = "https://github.com/" + GITHUB_USER + "/" + GITHUB_REPO + "/releases/download/" + tag + "/" + softwareName + ".exe"
3232
r = requests.get(url, stream=True)

0 commit comments

Comments
 (0)