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 ---"
|
2023-11-18 19:03:53 +00:00
|
|
|
cargo build --release
|
|
|
|
#mkdir -p out
|
2022-09-01 21:39:34 +01:00
|
|
|
cp target/release/fantastic-rs out/backend
|
|
|
|
|
2023-11-18 19:03:53 +00:00
|
|
|
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
|