From f4d372fdcdfe48c281b256aaa9b4c0e296570746 Mon Sep 17 00:00:00 2001 From: LD Date: Thu, 15 Oct 2020 22:44:13 +0200 Subject: [PATCH] dist: Add platform name to NSIS installer filename and generate it into the dist directory Closes #1038 --- direct/src/dist/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index 5be82aa362..6a8b0c5708 100644 --- a/direct/src/dist/commands.py +++ b/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: