22 lines
492 B
Bash
Executable file
22 lines
492 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "--- Rust version info ---"
|
|
rustup --version
|
|
rustc --version
|
|
cargo --version
|
|
|
|
echo "--- Building plugin backend ---"
|
|
cargo build --release
|
|
#mkdir -p out
|
|
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
|
|
|
|
echo " --- Cleaning up ---"
|
|
# remove root-owned target folder
|
|
cargo clean
|