Skip to content

Commit be1f4e6

Browse files
chore: remove BREEZE_BUILD_DATE_TIME and related apis to reduce rebuild time
1 parent 8f345ab commit be1f4e6

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

src/shell/build_info.h.in

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#pragma once
2-
#define BREEZE_VERSION "${VERSION}"
3-
#define BREEZE_VERSION_MAJOR ${VERSION_MAJOR}
4-
#define BREEZE_VERSION_MINOR ${VERSION_MINOR}
5-
#define BREEZE_GIT_COMMIT_HASH "${GIT_COMMIT_HASH}"
6-
#define BREEZE_GIT_BRANCH_NAME "${GIT_BRANCH_NAME}"
7-
#define BREEZE_BUILD_DATE_TIME "${BUILD_DATE_TIME}"
1+
#pragma once
2+
#define BREEZE_VERSION "${VERSION}"
3+
#define BREEZE_VERSION_MAJOR ${VERSION_MAJOR}
4+
#define BREEZE_VERSION_MINOR ${VERSION_MINOR}
5+
#define BREEZE_GIT_COMMIT_HASH "${GIT_COMMIT_HASH}"
6+
#define BREEZE_GIT_BRANCH_NAME "${GIT_BRANCH_NAME}"

src/shell/error_handler.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ void mb_shell::install_error_handlers() {
104104
sentry_init(options);
105105
sentry_set_tag("git_commit", BREEZE_GIT_COMMIT_HASH);
106106
sentry_set_tag("git_branch", BREEZE_GIT_BRANCH_NAME);
107-
sentry_set_tag("build_date", BREEZE_BUILD_DATE_TIME);
108107
sentry_set_tag("windows_version",
109108
mb_shell::is_win11_or_later() ? "11+" : "10-");
110109

src/shell/script/binding_qjs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,6 @@ template<> struct js_bind<mb_shell::js::breeze> {
11351135
.static_fun<&mb_shell::js::breeze::version>("version")
11361136
.static_fun<&mb_shell::js::breeze::hash>("hash")
11371137
.static_fun<&mb_shell::js::breeze::branch>("branch")
1138-
.static_fun<&mb_shell::js::breeze::build_date>("build_date")
11391138
.static_fun<&mb_shell::js::breeze::data_directory>("data_directory")
11401139
.static_fun<&mb_shell::js::breeze::is_light_theme>("is_light_theme")
11411140
.static_fun<&mb_shell::js::breeze::user_language>("user_language")

src/shell/script/binding_types.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,6 @@ std::optional<std::string> win32::env(std::string name) {
688688

689689
std::string breeze::hash() { return BREEZE_GIT_COMMIT_HASH; }
690690
std::string breeze::branch() { return BREEZE_GIT_BRANCH_NAME; }
691-
std::string breeze::build_date() { return BREEZE_BUILD_DATE_TIME; }
692691
std::vector<std::shared_ptr<mb_shell::js::menu_item_controller>>
693692
menu_item_parent_item_controller::children() {
694693
if (!valid())

src/shell/script/binding_types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,6 @@ export class breeze {
10651065
static version(): string
10661066
static hash(): string
10671067
static branch(): string
1068-
static build_date(): string
10691068
static data_directory(): string
10701069
static is_light_theme(): boolean
10711070
static user_language(): string

src/shell/script/binding_types.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ struct breeze {
627627
static std::string version();
628628
static std::string hash();
629629
static std::string branch();
630-
static std::string build_date();
631630
static std::string data_directory();
632631
static bool is_light_theme();
633632
static std::string user_language();

0 commit comments

Comments
 (0)