diff options
| author | Dan Engelbrecht <[email protected]> | 2023-11-23 10:39:06 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-23 10:39:06 +0100 |
| commit | 47d2c1264eb14e55ade42f993be5163ffc6cfaae (patch) | |
| tree | 773e3d766176a8de70760c2a86f854014d569192 /xmake.lua | |
| parent | changelog version bump (diff) | |
| download | zen-47d2c1264eb14e55ade42f993be5163ffc6cfaae.tar.xz zen-47d2c1264eb14e55ade42f993be5163ffc6cfaae.zip | |
embed html frontend content as binary compiled data (#559)
- Feature: Added xmake task `updatefrontend` which updates the zip file containing the frontend html (`/src/zenserver/frontend/html.zip`)
- Improvement: The frontend html content is no longer appended at the end of the executable which prevented signing, instead it is compiled in from the `/src/zenserver/frontend/html.zip` archive
- Improvement: MacOS now does ad-hoc code signing by default when issuing `xmake bundle`, signing with proper cert is done on CI builds
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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", |