From 5e22539dace1f19000b98d9bc7a5dad3f5570ed7 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 20 Nov 2023 14:53:01 +0100 Subject: [PATCH] Correctly set the version number when sending to sentry CURA-13364 --- src/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9a7f06c3ae..d6f2cb9640 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,6 +9,7 @@ #include #include +#include #include "Application.h" namespace cura @@ -44,11 +45,11 @@ int main(int argc, char** argv) // This is also the default-path. For further information and recommendations: // https://docs.sentry.io/platforms/native/configuration/options/#database-path sentry_options_set_database_path(options, ".sentry-native"); - // TODO: Hardcoded the version number, we should also get that from somewhere. Can't be bothered to figure that out now - sentry_options_set_release(options, "curaengine@1.0.0"); - sentry_options_set_debug(options, 1); + std::string version = "curaengine@"; + version += std::string(CURA_ENGINE_VERSION); + sentry_options_set_release(options, version.c_str()); sentry_init(options); - + cura::Application::getInstance().run(argc, argv); sentry_close();