Skip to content

Commit 80af514

Browse files
committed
Backport ability to create a pdb zipfile to 1.9
1 parent cf38927 commit 80af514

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

makepanda/makepanda.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6459,6 +6459,26 @@ def MakeInstallerNSIS(file, title, installdir):
64596459
oscmd(cmd)
64606460
os.rename("nsis-output.exe", file)
64616461

6462+
def MakeDebugSymbolArchive(zipname, dirname):
6463+
import zipfile
6464+
zip = zipfile.ZipFile(zipname, 'w', zipfile.ZIP_DEFLATED)
6465+
6466+
for fn in glob.glob(os.path.join(GetOutputDir(), 'bin', '*.pdb')):
6467+
zip.write(fn, dirname + '/bin/' + os.path.basename(fn))
6468+
6469+
for fn in glob.glob(os.path.join(GetOutputDir(), 'panda3d', '*.pdb')):
6470+
zip.write(fn, dirname + '/panda3d/' + os.path.basename(fn))
6471+
6472+
for fn in glob.glob(os.path.join(GetOutputDir(), 'plugins', '*.pdb')):
6473+
zip.write(fn, dirname + '/plugins/' + os.path.basename(fn))
6474+
6475+
for fn in glob.glob(os.path.join(GetOutputDir(), 'python', '*.pdb')):
6476+
zip.write(fn, dirname + '/python/' + os.path.basename(fn))
6477+
6478+
for fn in glob.glob(os.path.join(GetOutputDir(), 'python', 'DLLs', '*.pdb')):
6479+
zip.write(fn, dirname + '/python/DLLs/' + os.path.basename(fn))
6480+
6481+
zip.close()
64626482

64636483
INSTALLER_DEB_FILE="""
64646484
Package: panda3dMAJOR
@@ -7012,11 +7032,13 @@ def MakeInstallerFreeBSD():
70127032
MakeInstallerNSIS("Panda3D-Runtime-"+VERSION+dbg+"-x64.exe", "Panda3D "+VERSION, "C:\\Panda3D-"+VERSION+"-x64")
70137033
else:
70147034
MakeInstallerNSIS("Panda3D-"+VERSION+dbg+"-x64.exe", "Panda3D SDK "+VERSION, "C:\\Panda3D-"+VERSION+"-x64")
7035+
MakeDebugSymbolArchive("Panda3D-"+VERSION+dbg+"-x64-pdb.zip", "Panda3D-"+VERSION+"-x64")
70157036
else:
70167037
if (RUNTIME):
70177038
MakeInstallerNSIS("Panda3D-Runtime-"+VERSION+dbg+".exe", "Panda3D "+VERSION, "C:\\Panda3D-"+VERSION)
70187039
else:
70197040
MakeInstallerNSIS("Panda3D-"+VERSION+dbg+".exe", "Panda3D SDK "+VERSION, "C:\\Panda3D-"+VERSION)
7041+
MakeDebugSymbolArchive("Panda3D-"+VERSION+dbg+"-pdb.zip", "Panda3D-"+VERSION)
70207042
elif (target == 'linux'):
70217043
MakeInstallerLinux()
70227044
elif (target == 'darwin'):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy