Crashpad supports attachments on MacOS.

This commit is contained in:
Roman Telezhynskyi 2024-05-02 14:38:45 +03:00
parent 68d7562e4d
commit 143d709e83

View File

@ -213,10 +213,7 @@ auto InitializeCrashpad(const QString &appName) -> bool
// Attachments to be uploaded alongside the crash - default bundle size limit is 20MB // Attachments to be uploaded alongside the crash - default bundle size limit is 20MB
std::vector<base::FilePath> attachments; std::vector<base::FilePath> attachments;
base::FilePath const attachment(VCrashPaths::GetPlatformString(VCrashPaths::GetAttachmentPath(appName))); base::FilePath const attachment(VCrashPaths::GetPlatformString(VCrashPaths::GetAttachmentPath(appName)));
#if defined(Q_OS_WINDOWS) || defined(Q_OS_LINUX)
// Crashpad hasn't implemented attachments on OS X yet
attachments.push_back(attachment); attachments.push_back(attachment);
#endif
// Ensure that crashpad_handler is shipped with your application // Ensure that crashpad_handler is shipped with your application
base::FilePath const handler(VCrashPaths::GetPlatformString(crashpadPaths.GetHandlerPath())); base::FilePath const handler(VCrashPaths::GetPlatformString(crashpadPaths.GetHandlerPath()));