|
@@ -72,8 +72,15 @@ def download(url, fname=None):
|
|
|
prog += len(chunk)
|
|
|
print("\r{:2.1f}%".format(prog / size * 100), end="", flush=True)
|
|
|
print("\nDone!")
|
|
|
+ # rename file to WinGIN-install (msi or exe)
|
|
|
+ fhead, ftail = os.path.split(fname)
|
|
|
+ froot, fext = os.path.splitext(ftail)
|
|
|
+ newpath = os.path.join(fhead, "WinGIN-install"+fext)
|
|
|
+ print("--> Renaming {} → {}".format(fname, newpath))
|
|
|
+ os.rename(fname, newpath)
|
|
|
print()
|
|
|
- return fname
|
|
|
+
|
|
|
+ return newpath
|
|
|
|
|
|
|
|
|
def get_appveyor_info():
|
|
@@ -154,8 +161,9 @@ def main():
|
|
|
update_verinfo(avinfo)
|
|
|
print("Uploading changes")
|
|
|
# at each run, we expect the following files to change
|
|
|
- changedfiles = ["README.md", "etags", "Setup.msi", "setup.exe", "version",
|
|
|
- "build.json"]
|
|
|
+ changedfiles = ["README.md", "etags",
|
|
|
+ "WinGIN-install.msi", "WinGIN-install.exe",
|
|
|
+ "version", "build.json"]
|
|
|
# any other changes (e.g., changes to this script) should be handled
|
|
|
# manually
|
|
|
call(["gin", "upload", *changedfiles])
|