فهرست منبع

gin commit from Platinum

Modified files: 2
Achilleas Koutsou 5 سال پیش
والد
کامیت
99e9a8b39f
2فایلهای تغییر یافته به همراه5 افزوده شده و 13 حذف شده
  1. 1 1
      instructions.md
  2. 4 12
      updatefiles.py

+ 1 - 1
instructions.md

@@ -1,6 +1,6 @@
 # WinGIN installer files
 # 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.
 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.
 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.
     - 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)
         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):
 def update_verinfo(info):
     with open("version", "w") as verfile:
     with open("version", "w") as verfile:
         verfile.write(info["version"])
         verfile.write(info["version"])
@@ -157,8 +147,10 @@ def main():
         sys.exit("aborting")
         sys.exit("aborting")
     print(f"Found {len(artifacts)} artifacts")
     print(f"Found {len(artifacts)} artifacts")
     for url in 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()
     save_etags()
     print("Updating README.md")
     print("Updating README.md")
     update_readme(avinfo)
     update_readme(avinfo)