Procházet zdrojové kódy

gin commit from Platinum

Modified files: 1
Deleted files: 1
Achilleas Koutsou před 5 roky
rodič
revize
7f7aa6a0b3
2 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 5 2
      updatefiles.py
  2. 0 1
      version

+ 5 - 2
updatefiles.py

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

+ 0 - 1
version

@@ -1 +0,0 @@
-.git/annex/objects/fJ/q4/MD5-s7--f1b990ebe8c843ff8164d7a486a7a628/MD5-s7--f1b990ebe8c843ff8164d7a486a7a628