mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
dist: Add platform name to NSIS installer filename and generate it into the dist directory
Closes #1038
This commit is contained in:
parent
d62146a317
commit
f4d372fdcd
3
direct/src/dist/commands.py
vendored
3
direct/src/dist/commands.py
vendored
@ -1311,7 +1311,6 @@ class bdist_apps(setuptools.Command):
|
|||||||
for i in apps
|
for i in apps
|
||||||
]
|
]
|
||||||
|
|
||||||
fullname = self.distribution.get_fullname()
|
|
||||||
shortname = self.distribution.get_name()
|
shortname = self.distribution.get_name()
|
||||||
|
|
||||||
# Create the .nsi installer script
|
# Create the .nsi installer script
|
||||||
@ -1321,7 +1320,7 @@ class bdist_apps(setuptools.Command):
|
|||||||
|
|
||||||
# Some global info
|
# Some global info
|
||||||
nsi.write('Name "%s"\n' % shortname)
|
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:
|
if is_64bit:
|
||||||
nsi.write('InstallDir "$PROGRAMFILES64\\%s"\n' % shortname)
|
nsi.write('InstallDir "$PROGRAMFILES64\\%s"\n' % shortname)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user