Add script to build object file (.o) for Ubuntu

This ubuntu_server.o file then needs to be copied to the server and
linked.
This commit is contained in:
Edward Loveall 2021-09-07 22:00:20 -04:00
parent 9770ff5c7a
commit 7851434952
No known key found for this signature in database
GPG key ID: 789A4AE983AC8901

7
script/build_ubuntu Executable file
View file

@ -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"