Skip to content

Commit 305c2d9

Browse files
committed
Added util file download
1 parent b4ffed6 commit 305c2d9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/updaterLib/core.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ 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")
27+
28+
with open(softwareName + ".png", "wb") as f:
29+
f.write(r)
30+
2531
url = "https://github.com/" + GITHUB_USER + "/" + GITHUB_REPO + "/releases/download/" + tag + "/" + softwareName + ".exe"
2632
r = requests.get(url, stream=True)
2733

0 commit comments

Comments
 (0)