#!/usr/bin/env bash set -euo pipefail repo=$(cd "$(dirname "$0")/../.." && pwd) image=${DROIDDECK_BUILD_IMAGE:-droiddeck-local-cross:24.04-v3} docker run --rm --platform linux/amd64 -v "$repo:/src" \ -v "${HOME}/.cache/droiddeck-comet-rust:/rust" -w /src \ -e CARGO_HOME=/rust/cargo -e RUSTUP_HOME=/rust/rustup "$image" bash -lc ' set -euo pipefail apt-get update -qq apt-get install -y -qq curl git unzip ca-certificates pkg-config >/dev/null export PATH=/rust/cargo/bin:$PATH if ! command -v cargo >/dev/null; then curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.90.0 fi export RUSTUP_TOOLCHAIN=1.90.0 rustup target add aarch64-unknown-linux-gnu bash tools/comet/build.sh '