[fix] correct version display in about window

This commit is contained in:
dijunkun
2025-10-23 23:01:38 +08:00
parent 3638b712bd
commit 0bf83f07ad
3 changed files with 17 additions and 6 deletions

View File

@@ -1,8 +1,13 @@
set_project("crossdesk")
set_license("LGPL-3.0")
set_version("0.0.1")
add_defines("RD_VERSION=\"0.0.1\"");
option("CROSSDESK_VERSION")
set_default("0.0.0")
set_showmenu(true)
set_description("Set CROSSDESK_VERSION for build")
option_end()
add_defines("CROSSDESK_VERSION=\"" .. (get_config("CROSSDESK_VERSION") or "Unknown") .. "\"")
add_rules("mode.release", "mode.debug")
set_languages("c++17")