refactor: separate standalone and managed room configs

- veins → shunts rename
- add cfg/standalone/ and cfg/<room>/ structure
- remove old data/*.json (moved to cfg/<room>/data/)
- update build.py and ctrl scripts
This commit is contained in:
buenosairesam
2026-01-02 17:09:58 -03:00
parent 46dc78db0e
commit 9e5cbbad1f
57 changed files with 1788 additions and 150 deletions

View File

@@ -2,21 +2,25 @@
# Build soleprint for local development
#
# Usage:
# ./build.sh # Build gen/ with default config
# ./build.sh amar # Build gen/ with amar room config
# ./build.sh # Build gen/standalone/
# ./build.sh amar # Build gen/amar/
# ./build.sh --all # Build all targets
set -e
cd "$(dirname "$0")/.."
CFG="${1:-}"
TARGET="${1:-}"
if [ -n "$CFG" ]; then
echo "Building with --cfg $CFG..."
python build.py dev --cfg "$CFG"
if [ "$TARGET" = "--all" ]; then
echo "Building all targets..."
python build.py dev --all
elif [ -n "$TARGET" ]; then
echo "Building gen/$TARGET/..."
python build.py dev --cfg "$TARGET"
else
echo "Building soleprint..."
echo "Building gen/standalone/..."
python build.py dev
fi
echo ""
echo "Done. Run with: ./ctrl/start.sh"
echo "Done. Run with: ./ctrl/start.sh [target]"