Anthony Tuininga avatar Anthony Tuininga committed 383613a

Add support for specifying the architecture in order to differentiate between
32-bit and 64-bit builds.

Comments (0)

Files changed (1)

cx_Freeze/windist.py

 import distutils.command.bdist_msi
+import distutils.util
 import msilib
 import os
 
         if self.target_name is None:
             self.target_name = fullname
         if not self.target_name.lower().endswith(".msi"):
-            self.target_name += ".msi"
+            platform = distutils.util.get_platform().replace("win-", "")
+            self.target_name = "%s-%s.msi" % (self.target_name, platform)
         if not os.path.isabs(self.target_name):
             self.target_name = os.path.join(self.dist_dir, self.target_name)
         if self.directories is None:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.