Skip to content

Commit

Permalink
Cross: Add necessary stuff for frontend build
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and joaoantoniocardoso committed Oct 1, 2024
1 parent bfc457a commit ba6687f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit ba6687f

Please sign in to comment.