|
@@ -91,6 +91,7 @@ def get_appveyor_info():
|
|
|
info = dict()
|
|
|
info["commit"] = build["commitId"]
|
|
|
info["message"] = build["message"]
|
|
|
+ info["version"] = build["version"]
|
|
|
dlurls = []
|
|
|
for job in build["jobs"]: # should just be one for this project
|
|
|
if job["status"] == "success":
|
|
@@ -108,7 +109,7 @@ def get_appveyor_info():
|
|
|
def update_readme(info):
|
|
|
print(f"Latest commit: {info['message']} [{info['commit']}]")
|
|
|
commiturl = (f"https://github.com/G-Node/GinUI/commit/{info['commit']}")
|
|
|
- vertext = ("\n## Version\n\n"
|
|
|
+ vertext = (f"\n## Version {info['version']}\n\n"
|
|
|
"The current version of the setup files corresponds to:\n\n"
|
|
|
f"- Commit ID: [{info['commit']}]({commiturl})\n"
|
|
|
f"- Message: {info['message']}\n")
|
|
@@ -120,6 +121,8 @@ def update_readme(info):
|
|
|
readme.write(instructions)
|
|
|
readme.write(vertext)
|
|
|
readme.write(scriptdesc)
|
|
|
+ with open("version", "w") as verfile:
|
|
|
+ verfile.write(info["version"])
|
|
|
|
|
|
|
|
|
def main():
|
|
@@ -144,7 +147,7 @@ def main():
|
|
|
update_readme(avinfo)
|
|
|
print("Uploading changes")
|
|
|
# at each run, we expect the following files to change
|
|
|
- changedfiles = ["README.md", "etags", "Setup.msi", "setup.exe"]
|
|
|
+ changedfiles = ["README.md", "etags", "Setup.msi", "setup.exe", "version"]
|
|
|
# any other changes (e.g., changes to this script) should be handled
|
|
|
# manually
|
|
|
call(["gin", "upload", *changedfiles])
|