From a6bc52c3c8c673b51f9e7001ee0c1b6e099e0432 Mon Sep 17 00:00:00 2001 From: linus Date: Mon, 15 Nov 2021 18:43:31 +0100 Subject: [PATCH] renamed and improved build script --- build-binaries.sh | 18 ++++++++++++++++++ build.sh | 10 ---------- 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100755 build-binaries.sh delete mode 100644 build.sh diff --git a/build-binaries.sh b/build-binaries.sh new file mode 100755 index 0000000..79f1e7f --- /dev/null +++ b/build-binaries.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Go to innernet-src submodule +cd innernet-src || exit + +# Checkout correct version +git checkout "${INNERNET_VERSION}" + +# Build binaries +cargo build --release --bin innernet +cargo build --release --bin innernet-server + +# Copy binaries to Ansible roles +mkdir -p ./roles/server/files && \ + cp target/release/innernet ../roles/server/files/innernet-server + +mkdir -p ./roles/client/files && \ + cp target/release/innernet ../roles/client/files/innernet diff --git a/build.sh b/build.sh deleted file mode 100644 index 64adc52..0000000 --- a/build.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -# Build binaries -cd ./innernet -cargo build --release --bin innernet -cargo build --release --bin innernet-server - -# Copy binaries in place for Ansible roles -mkdir -p ./roles/server/files -mkdir -p ./roles/client/files