state sync; the basic early game works

This commit is contained in:
2025-08-05 17:57:43 -07:00
parent 9f514db33b
commit 1b72e899af
16 changed files with 209 additions and 23 deletions

View File

@@ -1,6 +1,8 @@
#!/bin/bash
BUILD_DIR=${BUILD_DIR:-./build}
srcdir=$(pwd)
BUILD_DIR=${BUILD_DIR:-$srcdir/build}
echo "$srcdir => $BUILD_DIR"
die () {
echo "$@" >&2
@@ -15,14 +17,13 @@ findcmd cargo
findcmd python
findcmd rsync
srcdir=$(pwd)
mkdir -p $BUILD_DIR && cd $BUILD_DIR
rsync -rv $srcdir/ $BUILD_DIR/
rsync -rv --include-from=$srcdir/.rsync-include $srcdir/ $BUILD_DIR/
# rant
mkdir -p opt/rant
cargo install rant --version 4.0.0-alpha.33 --root $BUILD_DIR/opt/rant --features cli
python $srcdir/ext/imsky/wordlists/render.py -i ext/imsky/wordlists -o rant $BUILD_DIR/app/rant/wordlist.rant
python $srcdir/render-wordlists.py -i $srcdir/ext/imsky/wordlists -o rant $BUILD_DIR/app/rant/wordlist.rant
# python venv
python -m venv pyvenv