Do not include PDB files in windows package when uploading symbols to bugsplat.

This commit is contained in:
Ghislain MARY 2026-03-09 12:12:42 +01:00
parent d2413f33a9
commit 396ed158f5

View file

@ -94,10 +94,15 @@ elseif(WIN32)
message(FATAL_ERROR "Failed to upload symbols! ${CPACK_COMMAND_RESULT}")
endif()
endif()
#####################################################
# Clean all unwanted files to package.
#####################################################
if(@ENABLE_BUGSPLAT_SYMBOLS_UPLOAD@)
remove_file("${CPACK_TEMPORARY_INSTALL_DIRECTORY}/*/*.pdb")
else()
remove_file("${CPACK_TEMPORARY_INSTALL_DIRECTORY}/*/Qt*.pdb")
endif()
# TODO: remove all pdb when CrashReporter is available. Symbols for crashing are in server so it is not needed for deployment.
# if debugging is needed, we could rebuild it and use pdb from local build instead of using official binaries.