diff options
| author | Marvin W <git@larma.de> | 2026-08-22 16:21:13 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-10-23 16:58:29 +0200 |
| commit | c71601077699df8464fce4cf9dc11bea598c071e (patch) | |
| tree | 7d2e785dc45c0707638c0752b67f07646b356fa6 /libdino/src/application.vala | |
| parent | d34b9fcb37fa79738582392e194e76651cd4adc2 (diff) | |
Use meson native project version
Diffstat (limited to 'libdino/src/application.vala')
| -rw-r--r-- | libdino/src/application.vala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libdino/src/application.vala b/libdino/src/application.vala index 35b706a4..f2e3cc9b 100644 --- a/libdino/src/application.vala +++ b/libdino/src/application.vala @@ -2,10 +2,12 @@ using Dino.Entities; namespace Dino { -public string get_version() { return VERSION; } +public extern unowned string get_version(); + public string get_short_version() { - if (!VERSION.contains("~")) return VERSION; - return VERSION.split("~")[0] + "+"; + string version = get_version(); + if (!version.contains("~")) return version; + return version.split("~")[0] + "+"; } public interface Application : GLib.Application { |
