Fantastic/backend/build-docker.sh

23 lines
492 B
Bash
Raw Normal View History

2022-08-23 22:26:05 +01:00
#!/bin/bash
2022-09-01 21:39:34 +01:00
echo "--- Rust version info ---"
rustup --version
rustc --version
cargo --version
echo "--- Building plugin backend ---"
cargo build --release
#mkdir -p out
2022-09-01 21:39:34 +01:00
cp target/release/fantastic-rs out/backend
echo "--- Building plugin frontend (wasm) ---"
# this only builds the webassembly part, while the actual frontend task builds the rest of it
cd /plugin/src/rust
./build.sh decky
cargo clean
cd /backend
2022-09-01 21:39:34 +01:00
echo " --- Cleaning up ---"
# remove root-owned target folder
cargo clean