Skip to content

Commit b04c96f

Browse files
committed
feat: add release-please
- Extract app version to version.h with release-please auto-update - Fix credits URL truncation on Flipper screen
1 parent d6cdd13 commit b04c96f

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

main.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "logic.h"
2+
#include "version.h"
23
#include <furi.h>
34
#include <furi_hal.h>
45
#include <gui/gui.h>
@@ -255,11 +256,13 @@ int32_t sub_dup_finder_app(void *p) {
255256
view_set_previous_callback(popup_get_view(app_state.popup), back_to_submenu);
256257

257258
widget_add_string_element(app_state.credits_widget, 0, 10, AlignLeft, AlignTop, FontPrimary,
258-
"Sub Duplicate Finder v1.0");
259+
"Sub Duplicate Finder v" APP_VERSION);
259260
widget_add_string_element(app_state.credits_widget, 0, 25, AlignLeft, AlignTop, FontPrimary,
260261
"Author: Endika");
261262
widget_add_string_element(app_state.credits_widget, 0, 38, AlignLeft, AlignTop, FontSecondary,
262-
"github.com/endika/flipper-sub-dup");
263+
"https://github.com/endika/");
264+
widget_add_string_element(app_state.credits_widget, 0, 48, AlignLeft, AlignTop, FontSecondary,
265+
"flipper-sub-dup");
263266

264267
submenu_add_item(app_state.main_submenu, "Find Duplicates", SubDupFinderSubmenuIndexScan,
265268
main_submenu_callback, NULL);

release-please-config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
".": {
44
"release-type": "simple",
55
"bump-minor-pre-major": true,
6-
"bump-patch-for-minor-pre-major": true
6+
"bump-patch-for-minor-pre-major": true,
7+
"extra-files": [
8+
"version.h"
9+
]
710
}
811
}
912
}

version.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
#define APP_VERSION "1.1.0" // x-release-please-version

0 commit comments

Comments
 (0)