diff --git a/CHANGELOG.md b/CHANGELOG.md index 71958758..370b9193 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Fixed setting `throttle_window_ms` to 0 should disable it ([#382](https://github.com/getsentry/sentry-godot/pull/382)) - Fixed failing to set initial user on Apple platforms ([#390](https://github.com/getsentry/sentry-godot/pull/390)) +- Added missing `crashpad_wer.dll` to Windows builds and export dependencies ([#396](https://github.com/getsentry/sentry-godot/pull/396)) ### Other changes diff --git a/modules/sentry-native.SConscript b/modules/sentry-native.SConscript index e0aacff4..26c6b864 100644 --- a/modules/sentry-native.SConscript +++ b/modules/sentry-native.SConscript @@ -89,9 +89,11 @@ elif platform == "macos": # Crashpad handler if platform == "windows": - build_targets.append(File(f"sentry-native/install/bin/crashpad_handler.exe")) + build_targets.append(File("sentry-native/install/bin/crashpad_handler.exe")) + build_targets.append(File("sentry-native/install/bin/crashpad_wer.dll")) + build_targets.append(File("sentry-native/install/bin/crashpad_wer.pdb")) else: - build_targets.append(File(f"sentry-native/install/bin/crashpad_handler")) + build_targets.append(File("sentry-native/install/bin/crashpad_handler")) # Other defines env.Append(CPPDEFINES=["SENTRY_BUILD_STATIC", "SDK_NATIVE"]) @@ -199,6 +201,14 @@ def CopyCrashpadHandler(self, target_dir): target_dir.File("crashpad_handler.pdb"), source_dir.File("crashpad_handler.pdb") ) + copy_file_action( + target_dir.File("crashpad_wer.dll"), + source_dir.File("crashpad_wer.dll") + ) + copy_file_action( + target_dir.File("crashpad_wer.pdb"), + source_dir.File("crashpad_wer.pdb") + ) else: copy_file_action( target_dir.File("crashpad_handler"), diff --git a/src/manifest.gdextension b/src/manifest.gdextension index b767f998..0ea5fa82 100644 --- a/src/manifest.gdextension +++ b/src/manifest.gdextension @@ -51,11 +51,13 @@ linux.x86_32 = { } windows.x86_64 = { - "res://addons/sentry/bin/windows/x86_64/crashpad_handler.exe" : "" + "res://addons/sentry/bin/windows/x86_64/crashpad_handler.exe" : "", + "res://addons/sentry/bin/windows/x86_64/crashpad_wer.dll": "" } windows.x86_32 = { - "res://addons/sentry/bin/windows/x86_32/crashpad_handler.exe" : "" + "res://addons/sentry/bin/windows/x86_32/crashpad_handler.exe" : "", + "res://addons/sentry/bin/windows/x86_32/crashpad_wer.dll": "" } macos.debug = {