Files
chandra/scripts/sprite-setup.sh
Claude 41c6ec1135
CI / test (push) Canceled after 0s
Remove the Rust host (host-wasm)
The MoonBit host (wasmhost/, build/wasmhost) is the only host now. Gone:
host-wasm/ (Rust on the wasmtime crate, ~5,700 lines incl. Cargo.lock),
the run-rust, run-drm-rust and host-wasm recipes, and `just install --rust`
(both the recipe and session/install.py now stop with an error naming the
removal instead of quietly ignoring the flag). remote-build.sh builds and
pulls build/wasmhost. README, wasmhost/README and docs no longer describe a
second host, apart from short history notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hiBxpbLoeUM9xfZayq
2026-11-26 04:19:19 +00:00

19 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# One-off setup of the build sprite used by scripts/remote-build.sh (Ubuntu sprite): dev libs, pixi, moon, wasm-tools.
# Run on the sprite: sprite exec -s chandra-build --no-stdin --file scripts/sprite-setup.sh:/tmp/sprite-setup.sh -- bash /tmp/sprite-setup.sh
# Then once: sprite exec -s chandra-build --no-stdin -- bash -c '~/.moon/bin/moon update'
set -euo pipefail
sudo mkdir -p /home/nandi/Projects/chandra && sudo chown -R sprite:sprite /home/nandi
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq libdrm-dev libinput-dev libxkbcommon-dev libudev-dev libseat-dev pkg-config xz-utils unzip >/dev/null
mkdir -p ~/.local/bin
# pixi
curl -fsSL https://pixi.sh/install.sh | PIXI_VERSION=v0.84.2 PIXI_NO_PATH_UPDATE=1 sh >/dev/null 2>&1 || true
# wasm-tools prebuilt
curl -fsSL https://github.com/bytecodealliance/wasm-tools/releases/download/v1.258.0/wasm-tools-1.258.0-x86_64-linux.tar.gz | tar xz -C /tmp
install /tmp/wasm-tools-1.258.0-x86_64-linux/wasm-tools ~/.local/bin/
# moon
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash >/dev/null 2>&1 || true
export PATH=$HOME/.pixi/bin:$HOME/.moon/bin:$HOME/.local/bin:$PATH
pixi -V; wasm-tools -V; moon version | head -1; ls /usr/include/libseat.h