From 60ab813cc31feb26c01b976bcd1440f968f4d897 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Thu, 20 Jan 2022 10:47:55 +0100 Subject: An implementation of 'xmake bundle' for Linux --- bundle.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'bundle.lua') diff --git a/bundle.lua b/bundle.lua index 6a715af62..f277ba3bc 100644 --- a/bundle.lua +++ b/bundle.lua @@ -146,6 +146,25 @@ local function main_mac() crashpad_handler_path) end +-------------------------------------------------------------------------------- +local function main_linux() + _build("x86_64") + + -- Crashpad handler does not exist for Linux + local crashpad_handler_path = nil + --[[ + local crashpad_handler_path = _find_vcpkg_binary( + "x64-linux", + "sentry-native", + "crashpad_handler") + --]] + + _zip( + "build/zenserver-linux.zip", + "build/linux/x86_64/release/zenserver", + crashpad_handler_path) +end + -------------------------------------------------------------------------------- function main() if is_host("windows") then @@ -156,5 +175,9 @@ function main() return main_mac() end + if is_host("linux") then + return main_linux() + end + raise("'xmake bundle' not currently supported on this platform") end -- cgit v1.2.3