mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-09 05:49:09 -07:00
New build system
This commit is contained in:
@@ -309,15 +309,16 @@ MomentumApp* momentum_app_alloc() {
|
||||
app->dolphin_angry = stats.butthurt;
|
||||
furi_record_close(RECORD_DOLPHIN);
|
||||
|
||||
if(strcmp(version_get_version(NULL), "MNTM-DEV") == 0) {
|
||||
app->version_tag = furi_string_alloc_printf("%s ", version_get_version(NULL));
|
||||
app->version_tag = furi_string_alloc_printf("%s ", version_get_version(NULL));
|
||||
if(furi_string_start_with(app->version_tag, "mntm-dev")) {
|
||||
furi_string_set(app->version_tag, "MNTM-DEV ");
|
||||
const char* sha = version_get_githash(NULL);
|
||||
for(size_t i = 0; i < strlen(sha); ++i) {
|
||||
furi_string_push_back(app->version_tag, toupper(sha[i]));
|
||||
}
|
||||
} else {
|
||||
app->version_tag = furi_string_alloc_printf(
|
||||
"%s %s", version_get_version(NULL), version_get_builddate(NULL));
|
||||
furi_string_replace(app->version_tag, "mntm", "MNTM");
|
||||
furi_string_cat(app->version_tag, version_get_builddate(NULL));
|
||||
}
|
||||
|
||||
return app;
|
||||
|
||||
Reference in New Issue
Block a user