New build system

This commit is contained in:
Willy-JL
2024-03-10 10:17:59 +00:00
parent 33aab8c4aa
commit d0b32f1124
14 changed files with 101 additions and 295 deletions

View File

@@ -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;