This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from storm-devs/feature/build-watermarking
[meta,diagnostics,engine] Add basic watermarking
- Loading branch information
Showing
6 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
#ifdef STORM_WATERMARK_FILE | ||
#include STORM_WATERMARK_FILE | ||
#define STORM_STRINGIFY_EXPAND_(x) #x | ||
#define STORM_STRINGIFY_(x) STORM_STRINGIFY_EXPAND_(x) | ||
#define STORM_BUILD_WATERMARK_STRING STORM_STRINGIFY_(STORM_BUILD_WATERMARK) | ||
#else | ||
#error "Watermark file is not present. Check build configuration" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
#include "storm/fs.h" | ||
#include "vfile_service.h" | ||
#include "spdlog_sinks/syncable_sink.hpp" | ||
#include "watermark.hpp" | ||
|
||
#ifdef _UNICODE | ||
#include <tchar.h> | ||
|
@@ -162,6 +163,7 @@ LifecycleDiagnosticsService::Guard LifecycleDiagnosticsService::initialize(const | |
// TODO: make this crossplatform | ||
auto *options = sentry_options_new(); | ||
sentry_options_set_dsn(options, "https://[email protected]/5721165"); | ||
sentry_options_set_release(options, STORM_BUILD_WATERMARK_STRING); | ||
sentry_options_set_database_path(options, (fs::GetStashPath() / "sentry-db").c_str()); | ||
sentry_options_set_handler_path(options, (getExecutableDir() / "crashpad_handler.exe").c_str()); | ||
sentry_options_add_attachment(options, getLogsArchive().c_str()); | ||
|