From baf4df6c567594e89f89dc6b338c1f5da162c36f Mon Sep 17 00:00:00 2001 From: Juergen Stuber Date: Thu, 12 Sep 2019 22:08:08 +0200 Subject: [PATCH] Add setup script and configuration file for pixelserver2. --- pixelfooconf.py | 8 ++++++++ setup.sh | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 pixelfooconf.py create mode 100755 setup.sh diff --git a/pixelfooconf.py b/pixelfooconf.py new file mode 100644 index 0000000..d2b8181 --- /dev/null +++ b/pixelfooconf.py @@ -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}, +] diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..a003447 --- /dev/null +++ b/setup.sh @@ -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