@@ -6459,6 +6459,26 @@ def MakeInstallerNSIS(file, title, installdir):
6459
6459
oscmd (cmd )
6460
6460
os .rename ("nsis-output.exe" , file )
6461
6461
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 ()
6462
6482
6463
6483
INSTALLER_DEB_FILE = """
6464
6484
Package: panda3dMAJOR
@@ -7012,11 +7032,13 @@ def MakeInstallerFreeBSD():
7012
7032
MakeInstallerNSIS ("Panda3D-Runtime-" + VERSION + dbg + "-x64.exe" , "Panda3D " + VERSION , "C:\\ Panda3D-" + VERSION + "-x64" )
7013
7033
else :
7014
7034
MakeInstallerNSIS ("Panda3D-" + VERSION + dbg + "-x64.exe" , "Panda3D SDK " + VERSION , "C:\\ Panda3D-" + VERSION + "-x64" )
7035
+ MakeDebugSymbolArchive ("Panda3D-" + VERSION + dbg + "-x64-pdb.zip" , "Panda3D-" + VERSION + "-x64" )
7015
7036
else :
7016
7037
if (RUNTIME ):
7017
7038
MakeInstallerNSIS ("Panda3D-Runtime-" + VERSION + dbg + ".exe" , "Panda3D " + VERSION , "C:\\ Panda3D-" + VERSION )
7018
7039
else :
7019
7040
MakeInstallerNSIS ("Panda3D-" + VERSION + dbg + ".exe" , "Panda3D SDK " + VERSION , "C:\\ Panda3D-" + VERSION )
7041
+ MakeDebugSymbolArchive ("Panda3D-" + VERSION + dbg + "-pdb.zip" , "Panda3D-" + VERSION )
7020
7042
elif (target == 'linux' ):
7021
7043
MakeInstallerLinux ()
7022
7044
elif (target == 'darwin' ):
0 commit comments