Browse Source

Rename setup files to WinGIN-install

Achilleas Koutsou 5 years ago
parent
commit
517d5bc8eb
4 changed files with 13 additions and 7 deletions
  1. 0 1
      Setup.msi
  2. 2 2
      instructions.md
  3. 0 1
      setup.exe
  4. 11 3
      updatefiles.py

+ 0 - 1
Setup.msi

@@ -1 +0,0 @@
-.git/annex/objects/Gf/4P/MD5-s8616960--cf01708f1a949c10b20d027f3f3d1f47/MD5-s8616960--cf01708f1a949c10b20d027f3f3d1f47

+ 2 - 2
instructions.md

@@ -1,6 +1,6 @@
 # WinGIN installer files
 
-1. Download both [setup.exe](setup.exe) and [Setup.msi](Setup.msi) to a local directory.
-2. Run `setup.exe` and follow the steps.
+1. Download both [WinGIN-install.exe](WinGIN-install.exe) and [WinGIN-install.msi](WinGIN-install.msi) to a local directory.
+2. Run `WinGIN-install.exe` and follow the steps.
 3. At the end of the installation, you will be asked to install Dokan. This is required for the application to work.
     - If Dokan is already installed, you may skip this step by either unchecking the checkbox or cancelling the Dokan (un)install window that will appear.

+ 0 - 1
setup.exe

@@ -1 +0,0 @@
-.git/annex/objects/Ww/K2/MD5-s790528--f6d7d3c0426030252489981545b53f25/MD5-s790528--f6d7d3c0426030252489981545b53f25

+ 11 - 3
updatefiles.py

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