From b98ef8af4bdb1fdbef296209fedd036f1cc46dbd Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Sun, 26 Nov 2023 19:42:56 +0100 Subject: [PATCH] HEMTT - Update set_version hook for 1.10 --- .hemtt/hooks/pre_build/set_version.rhai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.hemtt/hooks/pre_build/set_version.rhai b/.hemtt/hooks/pre_build/set_version.rhai index 0bf7333..f26f229 100644 --- a/.hemtt/hooks/pre_build/set_version.rhai +++ b/.hemtt/hooks/pre_build/set_version.rhai @@ -5,7 +5,7 @@ let modCpp = HEMTT_VFS .read() ; -modCpp.replace("0.0.0", `${HEMTT_PROJECT_VERSION_MAJOR}.${HEMTT_PROJECT_VERSION_MINOR}.${HEMTT_PROJECT_VERSION_PATCH}`); +modCpp.replace("0.0.0", HEMTT.project().version().to_string_short()); HEMTT_VFS .join("mod.cpp")