Browse Source

Add setup script and configuration file for pixelserver2.

master
Juergen Stuber 1 year ago
parent
commit
baf4df6c56
2 changed files with 27 additions and 0 deletions
  1. 8
    0
      pixelfooconf.py
  2. 19
    0
      setup.sh

+ 8
- 0
pixelfooconf.py View File

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

+ 19
- 0
setup.sh View File

@@ -0,0 +1,19 @@
1
+#!/bin/bash
2
+
3
+set +e
4
+
5
+CONFIGS_DIR="${CONFIGS_DIR:-../../configs}"
6
+APPS_DIR="${APPS_DIR:-../../apps}"
7
+
8
+
9
+if hash cargo 2>/dev/null; then
10
+    cargo build --release
11
+
12
+    cp -f target/release/cnoise ${APPS_DIR}
13
+    cp -f target/release/bimood ${APPS_DIR}
14
+    cp -f target/release/predprey ${APPS_DIR}
15
+    cp -f target/release/maze ${APPS_DIR}
16
+    cp -f target/release/dualmaze ${APPS_DIR}
17
+
18
+    cp -f pixelfooconf.py ${CONFIGS_DIR}
19
+fi

Loading…
Cancel
Save