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

Closes #1038
This commit is contained in:
LD 2020-10-15 22:44:13 +02:00 committed by rdb
parent d62146a317
commit f4d372fdcd

View File

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