From 7851434952912ef8f6490130f06763f219dcc978 Mon Sep 17 00:00:00 2001 From: Edward Loveall Date: Tue, 7 Sep 2021 22:00:20 -0400 Subject: [PATCH] Add script to build object file (.o) for Ubuntu This ubuntu_server.o file then needs to be copied to the server and linked. --- script/build_ubuntu | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 script/build_ubuntu diff --git a/script/build_ubuntu b/script/build_ubuntu new file mode 100755 index 0000000..705107d --- /dev/null +++ b/script/build_ubuntu @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Exit if any subcommand fails +set -e +set -o pipefail + +crystal build src/start_server.cr -o ubuntu_server --release --cross-compile --target "x86_64-pc-linux-gnu"