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
1 changed files with 7 additions and 0 deletions

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"