aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/application.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2022-03-30 10:36:07 -0600
committerMarvin W <git@larma.de>2022-03-30 10:36:07 -0600
commit339d1d8f557e88ef6bb5812980b8988dc8fdf10d (patch)
treebc5c509f7d3ed80cdc6bcb68a7a283dde6d73fba /libdino/src/application.vala
parentc5ed719b665938a59011913e39ce94df63690b40 (diff)
downloaddino-339d1d8f557e88ef6bb5812980b8988dc8fdf10d.tar.gz
dino-339d1d8f557e88ef6bb5812980b8988dc8fdf10d.zip
Fix Version handling, add function to retrieve short version without git commit
Diffstat (limited to 'libdino/src/application.vala')
-rw-r--r--libdino/src/application.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdino/src/application.vala b/libdino/src/application.vala
index f381c21d..9b36dd79 100644
--- a/libdino/src/application.vala
+++ b/libdino/src/application.vala
@@ -1,7 +1,13 @@
using Dino.Entities;
namespace Dino {
+
extern const string VERSION;
+public string get_version() { return VERSION; }
+public string get_short_version() {
+ if (!VERSION.contains("~")) return VERSION;
+ return VERSION.split("~")[0] + "+";
+}
public interface Application : GLib.Application {