aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-12-11 13:09:03 +0100
committerStefan Boberg <[email protected]>2023-12-11 13:09:03 +0100
commit93afeddbc7a5b5df390a29407f5515acd5a70fc1 (patch)
tree6f85ee551aabe20dece64a750c0b2d5d2c5d2d5d /xmake.lua
parentremoved unnecessary SHA1 references (diff)
parentMake sure that PathFromHandle don't hide true error when throwing exceptions ... (diff)
downloadzen-93afeddbc7a5b5df390a29407f5515acd5a70fc1.tar.xz
zen-93afeddbc7a5b5df390a29407f5515acd5a70fc1.zip
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua20
1 files changed, 19 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index bfcdc5698..57e2f3390 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -1,6 +1,6 @@
-- Copyright Epic Games, Inc. All Rights Reserved.
-set_configvar("ZEN_SCHEMA_VERSION", 4) -- store Cid data in CAS under raw hash (dan.engelbrecht)
+set_configvar("ZEN_SCHEMA_VERSION", 5) -- force state wipe after 0.2.31 causing bad data (dan.engelbrecht)
add_requires(
"vcpkg::asio",
@@ -166,6 +166,7 @@ task("bundle")
description = "Create Zip bundle from binaries",
options = {
{nil, "withtrace", "k", nil, "Compiles with trace support"},
+ {nil, "codesignidentity", "v", nil, "Code signing identity"},
}
}
on_run(function ()
@@ -173,6 +174,16 @@ task("bundle")
bundle()
end)
+task("updatefrontend")
+ set_menu {
+ usage = "xmake updatefrontend",
+ description = "Create Zip of the frontend/html folder for bundling with zenserver executable",
+ }
+ on_run(function()
+ import("scripts.updatefrontend")
+ updatefrontend()
+ end)
+
task("precommit")
set_menu {
usage = "xmake precommit",
@@ -234,12 +245,19 @@ task("test")
print(os.exec("xmake"))
local tests = {}
+ local found_match = false
+
for name, test in pairs(available_tests) do
if name == testname or testname == "all" then
tests[name] = test
+ found_match = true
end
end
+ if not found_match then
+ raise("no tests match specification: '%s'", testname)
+ end
+
local use_junit_reporting = option.get("junit")
local junit_report_files = {}