diff options
| author | Dan Engelbrecht <[email protected]> | 2023-11-22 22:52:49 +0100 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2023-11-22 22:55:48 +0100 |
| commit | ca76f93b1014e1801f956a2e11e5a37f90d11163 (patch) | |
| tree | da39abe62bd1186abfc3c2a16f2e223a46be49c6 /scripts/bundle.lua | |
| parent | compile in the html zip file instead of appending at end of executable (diff) | |
| download | zen-ca76f93b1014e1801f956a2e11e5a37f90d11163.tar.xz zen-ca76f93b1014e1801f956a2e11e5a37f90d11163.zip | |
remove dead code
Diffstat (limited to 'scripts/bundle.lua')
| -rw-r--r-- | scripts/bundle.lua | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/bundle.lua b/scripts/bundle.lua index 050e2da8e..8e0a12d32 100644 --- a/scripts/bundle.lua +++ b/scripts/bundle.lua @@ -156,21 +156,6 @@ local function _find_vcpkg_binary(triple, port, binary) end -------------------------------------------------------------------------------- -local function _append_content_zip(bin_path) - local zip_path = "build/frontend.zip" - local content_dir = "src/zenserver/frontend/html/" - _zip(true, zip_path, content_dir) - - zip_file = io.open(zip_path, "rb") - local zip_data = zip_file:read("*all") - zip_file:close() - - bin_file = io.open(bin_path, "ab") - bin_file:write(zip_data) - bin_file:close() -end - --------------------------------------------------------------------------------- local function main_windows() import("core.base.option") @@ -183,8 +168,6 @@ local function main_windows() _build("x64", false, config_args) --- _append_content_zip("build/windows/x64/release/zenserver.exe") - local crashpad_handler_path = _find_vcpkg_binary( "x64-windows-static", "sentry-native", @@ -205,9 +188,6 @@ local function main_mac() _build("x86_64", false, "--target_minver=10.15") _build("arm64", false, "--target_minver=10.15") --- _append_content_zip("build/macosx/x86_64/release/zenserver") --- _append_content_zip("build/macosx/arm64/release/zenserver") - os.mkdir("build/macosx/universal/release/") local ret = _exec( "lipo", @@ -275,8 +255,6 @@ local function main_linux() "crashpad_handler") --]] --- _append_content_zip("build/linux/x86_64/release/zenserver") - _zip(false, "build/zenserver-linux.zip", "build/linux/x86_64/release/zenserver", |