diff --git a/Cross.toml b/Cross.toml index 917f2fd1..692c0ffa 100644 --- a/Cross.toml +++ b/Cross.toml @@ -7,12 +7,15 @@ image = "joaoantoniocardoso/cross-rs:armv7-unknown-linux-gnueabihf-bullseye-slim [target.aarch64-unknown-linux-gnu] image = "joaoantoniocardoso/cross-rs:aarch64-unknown-linux-gnu-bullseye-slim-with-gstreamer" -# [build] -# pre-build = [ -# "apt-get update && apt-get --assume-yes install unzip", -# "curl -fsSL https://bun.sh/install | bash -s 'bun-v1.0.0'", -# ". /root/.bashrc" -# ] +[build] +pre-build = [ + # Cross does not provide the necessary things for us to build our frontend + # Cargo + Trunk + wasm32 + "curl https://sh.rustup.rs -sSf | sh -s -- -y", + ". $HOME/.cargo/env", + "cargo install --locked trunk", + "rustup target add wasm32-unknown-unknown", +] [build.env] passthrough = ["SKIP_BINDINGS", "SKIP_BUN"]