Browse Source

gin commit from Platinum

Modified files: 2
Deleted files: 1
Achilleas Koutsou 5 years ago
parent
commit
4ac97fe63b
3 changed files with 11 additions and 4 deletions
  1. 0 1
      build.xml
  2. 1 1
      config.yml
  3. 10 2
      updatefiles.py

+ 0 - 1
build.xml

@@ -1 +0,0 @@
-[{"fileName":"Setup/Release/setup.exe","name":"Setup","type":"File","size":790528,"created":"2019-02-18T17:27:13.728658+00:00"},{"fileName":"Setup/Release/Setup.msi","name":"Setup","type":"File","size":8477696,"created":"2019-02-18T17:27:14.7625785+00:00"}]

+ 1 - 1
config.yml

@@ -1,3 +1,3 @@
 annex:
     minsize: 1B
-    exclude: ["*.md", "*.py", "etags"]
+    exclude: ["*.md", "*.py", "etags", "version", "build.json"]

+ 10 - 2
updatefiles.py

@@ -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])