forked from extern/innernet-playbook
19 lines
474 B
Bash
Executable File
19 lines
474 B
Bash
Executable File
#!/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
|