aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-06-02 10:51:44 +0200
committerDan Engelbrecht <[email protected]>2022-06-02 10:51:44 +0200
commit88938a3a14c1a30224fc72fd7b22424b18510685 (patch)
tree8ef769cf55369a540688008f49d3ed0c8b5dd839 /xmake.lua
parentmove release job to in-house linux agent (diff)
downloadzen-88938a3a14c1a30224fc72fd7b22424b18510685.tar.xz
zen-88938a3a14c1a30224fc72fd7b22424b18510685.zip
pick up version number from env variable set by github
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index 9ffc94c65..210e64c0f 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -1,7 +1,9 @@
-- Copyright Epic Games, Inc. All Rights Reserved.
-set_version("0.1.1", { build = "%Y%m%d%H%M" })
set_configvar("ZEN_SCHEMA_VERSION", 3) -- changed cas oplog format (p3rl)
+local zenversion = os.getenv("ZEN_VERSION") or "<dev>"
+zenversion = string.gsub(zenversion, "^v", "")
+set_version(zenversion, { build = "%Y%m%d%H%M" })
add_requires(
"vcpkg::asio",