Add setup script and configuration file for pixelserver2.

This commit is contained in:
Juergen Stuber 2019-09-12 22:08:08 +02:00
parent 3ddb2b4f22
commit baf4df6c56
2 changed files with 27 additions and 0 deletions

8
pixelfooconf.py Normal file
View File

@ -0,0 +1,8 @@
Apps = [
# juergen/pixelfoo
{"guiname": "Colored noise", "name": "cnoise", "cmd": "apps/cnoise", "persistent": False},
{"guiname": "Dual Moodlight", "name": "bimood", "cmd": "apps/bimood", "persistent": False},
{"guiname": "Maze", "name": "maze", "cmd": "apps/maze", "persistent": False},
{"guiname": "Dual Maze", "name": "dualmaze", "cmd": "apps/dualmaze", "persistent": False, "persistent": False},
{"guiname": "Predator & Prey", "name": "predprey", "cmd": "apps/predprey", "persistent": False},
]

19
setup.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
set +e
CONFIGS_DIR="${CONFIGS_DIR:-../../configs}"
APPS_DIR="${APPS_DIR:-../../apps}"
if hash cargo 2>/dev/null; then
cargo build --release
cp -f target/release/cnoise ${APPS_DIR}
cp -f target/release/bimood ${APPS_DIR}
cp -f target/release/predprey ${APPS_DIR}
cp -f target/release/maze ${APPS_DIR}
cp -f target/release/dualmaze ${APPS_DIR}
cp -f pixelfooconf.py ${CONFIGS_DIR}
fi