This repository has been archived on 2024-04-22. You can view files and clone it, but cannot push or open issues or pull requests.
caylon/backend/build-docker.sh

22 lines
648 B
Bash
Raw Normal View History

2022-12-04 01:24:12 +00:00
#!/bin/bash
export USDPL_ENCRYPTION_KEY=$(openssl enc -aes-256-cbc -k caylon -pbkdf2 -P -md sha1 | awk -F= '{if ($1 == "key") print $2}')
echo " --- Rust version info ---"
rustup --version
rustc --version
cargo --version
echo " --- Building plugin backend ---"
2022-12-24 15:22:26 +00:00
cargo build --release --features decky,encrypt
2022-12-04 01:24:12 +00:00
mkdir -p out
cp target/release/caylon out/backend
echo " --- Cleaning up backend ---"
# remove root-owned target folder
cargo clean
echo " --- Building plugin frontend WASM ---"
# TODO allow Dockerfile in root so that it can access src/usdpl_front and rebuild it
cd ../src/usdpl_front && ./rebuild.sh decky encrypt && cd ../../backend