forked from extern/innernet-playbook
renamed and improved build script
This commit is contained in:
parent
fa9a6cb50c
commit
a6bc52c3c8
18
build-binaries.sh
Executable file
18
build-binaries.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user