Browse Source

dist: Add platform name to NSIS installer filename and generate it into the dist directory

Closes #1038
LD 5 years ago
parent
commit
f4d372fdcd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      direct/src/dist/commands.py

+ 1 - 2
direct/src/dist/commands.py

@@ -1311,7 +1311,6 @@ class bdist_apps(setuptools.Command):
             for i in apps
         ]
 
-        fullname = self.distribution.get_fullname()
         shortname = self.distribution.get_name()
 
         # Create the .nsi installer script
@@ -1321,7 +1320,7 @@ class bdist_apps(setuptools.Command):
 
         # Some global info
         nsi.write('Name "%s"\n' % shortname)
-        nsi.write('OutFile "%s"\n' % (fullname+'.exe'))
+        nsi.write('OutFile "%s"\n' % os.path.join(self.dist_dir, basename+'.exe'))
         if is_64bit:
             nsi.write('InstallDir "$PROGRAMFILES64\\%s"\n' % shortname)
         else: