mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 01:20:25 +00:00
Add SENTRY_ENV option
This commit is contained in:
parent
f54605e1ea
commit
03148f9c7c
@ -80,6 +80,7 @@ set(CUSTOM_WEBSITE_URL "" CACHE STRING "Enable custom local webserver to check u
|
|||||||
if(ENABLE_SENTRY)
|
if(ENABLE_SENTRY)
|
||||||
set(SENTRY_DIR "" CACHE STRING "Sentry native location")
|
set(SENTRY_DIR "" CACHE STRING "Sentry native location")
|
||||||
set(SENTRY_DSN "" CACHE STRING "Sentry Data Source Name URL")
|
set(SENTRY_DSN "" CACHE STRING "Sentry Data Source Name URL")
|
||||||
|
set(SENTRY_ENV "development" CACHE STRING "Sentry environment (production, testing, development, etc.)")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_NEWS OR ENABLE_UPDATER)
|
if(ENABLE_NEWS OR ENABLE_UPDATER)
|
||||||
|
@ -703,7 +703,8 @@ if(ENABLE_SENTRY)
|
|||||||
target_compile_definitions(app-lib PUBLIC
|
target_compile_definitions(app-lib PUBLIC
|
||||||
-DENABLE_SENTRY
|
-DENABLE_SENTRY
|
||||||
-DSENTRY_BUILD_STATIC=1
|
-DSENTRY_BUILD_STATIC=1
|
||||||
-DSENTRY_DSN="${SENTRY_DSN}")
|
-DSENTRY_DSN="${SENTRY_DSN}"
|
||||||
|
-DSENTRY_ENV="${SENTRY_ENV}")
|
||||||
add_subdirectory(${SENTRY_DIR} sentry)
|
add_subdirectory(${SENTRY_DIR} sentry)
|
||||||
target_link_libraries(app-lib sentry)
|
target_link_libraries(app-lib sentry)
|
||||||
endif()
|
endif()
|
||||||
|
@ -27,6 +27,7 @@ void Sentry::init()
|
|||||||
{
|
{
|
||||||
sentry_options_t* options = sentry_options_new();
|
sentry_options_t* options = sentry_options_new();
|
||||||
sentry_options_set_dsn(options, SENTRY_DSN);
|
sentry_options_set_dsn(options, SENTRY_DSN);
|
||||||
|
sentry_options_set_environment(options, SENTRY_ENV);
|
||||||
|
|
||||||
std::string release = "aseprite@";
|
std::string release = "aseprite@";
|
||||||
release += get_app_version();
|
release += get_app_version();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user