|
@@ -80,7 +80,7 @@ def get_appveyor_info():
|
|
|
# TODO: Check what happens when a build is in progress and so has no
|
|
|
# available artifacts
|
|
|
apiurl = "https://ci.appveyor.com/api/"
|
|
|
- account = "achilleas-k"
|
|
|
+ account = "G-Node"
|
|
|
project_name = "GinUI"
|
|
|
|
|
|
url = os.path.join(apiurl, "projects", account, project_name)
|
|
@@ -89,6 +89,7 @@ def get_appveyor_info():
|
|
|
projects = json.loads(r.text)
|
|
|
build = projects["build"]
|
|
|
info = dict()
|
|
|
+ info["json"] = r.text
|
|
|
info["commit"] = build["commitId"]
|
|
|
info["message"] = build["message"]
|
|
|
info["version"] = build["version"]
|
|
@@ -121,8 +122,13 @@ def update_readme(info):
|
|
|
readme.write(instructions)
|
|
|
readme.write(vertext)
|
|
|
readme.write(scriptdesc)
|
|
|
+
|
|
|
+
|
|
|
+def update_verinfo(info):
|
|
|
with open("version", "w") as verfile:
|
|
|
verfile.write(info["version"])
|
|
|
+ with open("build.json", "w") as jsonfile:
|
|
|
+ jsonfile.write(info["json"])
|
|
|
|
|
|
|
|
|
def main():
|
|
@@ -145,9 +151,11 @@ def main():
|
|
|
save_etags()
|
|
|
print("Updating README.md")
|
|
|
update_readme(avinfo)
|
|
|
+ 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"]
|
|
|
+ changedfiles = ["README.md", "etags", "Setup.msi", "setup.exe", "version",
|
|
|
+ "build.json"]
|
|
|
# any other changes (e.g., changes to this script) should be handled
|
|
|
# manually
|
|
|
call(["gin", "upload", *changedfiles])
|