Commits

Anthony Tuininga  committed 383613a

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

  • Participants
  • Parent commits 8aaef20

Comments (0)

Files changed (1)

File 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: