summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-29 00:41:47 +0800
committerruki <[email protected]>2021-10-29 00:41:47 +0800
commitd4cff6e11c4fb3c0bbe466af800bf9ab66e8f683 (patch)
tree40bfde3c352f4effa041f9249533e1775bc86b07
parentacf31495a316b7eda54a200d150912b267c6e583 (diff)
improve version
-rw-r--r--core/src/xmake/engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index f63e43ee1..70dba69d7 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -907,7 +907,7 @@ xm_engine_ref_t xm_engine_init(tb_char_t const* name, xm_engine_lni_initalizer_c
// init version string
tb_char_t version_cstr[256] = {0};
if (tb_strcmp(XM_CONFIG_VERSION_BRANCH, "") && tb_strcmp(XM_CONFIG_VERSION_COMMIT, ""))
- tb_snprintf(version_cstr, sizeof(version_cstr), "%u.%u.%u+%s-%s", version->major, version->minor, version->alter, XM_CONFIG_VERSION_COMMIT, XM_CONFIG_VERSION_BRANCH);
+ tb_snprintf(version_cstr, sizeof(version_cstr), "%u.%u.%u-%s+%s", version->major, version->minor, version->alter, XM_CONFIG_VERSION_BRANCH, XM_CONFIG_VERSION_COMMIT);
else tb_snprintf(version_cstr, sizeof(version_cstr), "%u.%u.%u+%llu", version->major, version->minor, version->alter, version->build);
lua_pushstring(engine->lua, version_cstr);
lua_setglobal(engine->lua, "_VERSION");