From c71601077699df8464fce4cf9dc11bea598c071e Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 22 Aug 2026 16:21:13 +0200 Subject: Use meson native project version --- libdino/src/application.vala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libdino/src/application.vala') 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 { -- cgit v1.3