mirror of
https://git.fsfe.org/fsfe-system-hackers/innernet-playbook.git
synced 2024-11-22 06:33:11 +01:00
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
|