Browse Source

gin commit from Platinum

Modified files: 2
Achilleas Koutsou 4 years ago
parent
commit
99e9a8b39f
2 changed files with 5 additions and 13 deletions
  1. 1 1
      instructions.md
  2. 4 12
      updatefiles.py

+ 1 - 1
instructions.md

@@ -1,6 +1,6 @@
 # WinGIN installer files
 
-1. Download both [WinGIN-install.exe](WinGIN-install.exe) and [WinGIN-install.msi](WinGIN-install.msi) to a local directory.
+1. Download both [WinGIN-install.exe](WinGIN-install.exe) and [Setup.msi](Setup.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.

+ 4 - 12
updatefiles.py

@@ -124,16 +124,6 @@ def update_readme(info):
         readme.write(scriptdesc)
 
 
-def renameexe():
-    origname = "setup.exe"
-    newname = "WinGIN-install.exe"
-    if not os.path.exists(origname):
-        print("Error: Missing file {}".format(origname))
-        sys.exit("aborting")
-    print("--> Renaming {} → {}".format(origname, newname))
-    os.rename(origname, newname)
-
-
 def update_verinfo(info):
     with open("version", "w") as verfile:
         verfile.write(info["version"])
@@ -157,8 +147,10 @@ def main():
         sys.exit("aborting")
     print(f"Found {len(artifacts)} artifacts")
     for url in artifacts:
-        dlfiles.append(download(url))
-    renameexe()
+        fname = None
+        if url.endswith("setup.exe"):
+            fname = "WinGIN-install.exe"
+        dlfiles.append(download(url, fname))
     save_etags()
     print("Updating README.md")
     update_readme(avinfo)