renamed and improved build script

This commit is contained in:
linus 2021-11-15 18:43:31 +01:00
parent fa9a6cb50c
commit a6bc52c3c8
2 changed files with 18 additions and 10 deletions

18
build-binaries.sh Executable file
View File

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

View File

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