Files
chandra/scripts/sprite-setup.sh
T
nandiandClaude Sonnet 5.5 3b15248124
CI / test (push) Failing after 17s
Remote build on a sprites.dev sprite: just remote-build
Syncs the tree to a sprite at the same absolute path (host-wasm/build.rs bakes the
checkout's .pixi lib dir into the host's rpath), builds host, compositor.wasm and the
panel modules there, and pulls the artifacts back.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hk4tUnZsmzjbobxkwy
2026-11-25 12:03:04 -08:00

19 lines
1.3 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; cargo -V; ls /usr/include/libseat.h