Added support for juergen/pixelfoo
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
|
||||
# Set executable attributes
|
||||
echo "Setting Attributes for script"
|
||||
chmod +x apps/pong.py
|
||||
chmod +x apps/swifthohenberg.py
|
||||
chmod +x apps/strobo.py
|
||||
@@ -9,12 +9,35 @@ chmod +x apps/example.py
|
||||
chmod +x apps/youtubedl.sh
|
||||
|
||||
|
||||
# build c apps
|
||||
echo "Building c/c++ apps"
|
||||
mkdir -p build/c
|
||||
pushd build/c
|
||||
cmake ../../apps/c-src
|
||||
make
|
||||
popd
|
||||
mv build/c/fbcp apps/
|
||||
mv build/c/flicker apps/
|
||||
mv build/c/pixelflut apps/
|
||||
mv -f build/c/fbcp apps/
|
||||
mv -f build/c/flicker apps/
|
||||
mv -f build/c/pixelflut apps/
|
||||
|
||||
if hash cargo 2>/dev/null; then
|
||||
echo "Building juergen/pixelfoo"
|
||||
# get juergens apps
|
||||
mkdir -p external
|
||||
pushd external
|
||||
if [ ! -d "pixelfoo" ]; then
|
||||
git clone https://git.chaospott.de/juergen/pixelfoo.git
|
||||
fi
|
||||
pushd pixelfoo
|
||||
git pull
|
||||
cargo build --release
|
||||
popd
|
||||
popd
|
||||
|
||||
cp -f external/pixelfoo/target/release/cnoise apps/
|
||||
cp -f external/pixelfoo/target/release/bimood apps/
|
||||
cp -f external/pixelfoo/target/release/predprey apps/
|
||||
cp -f external/pixelfoo/target/release/maze apps/
|
||||
cp -f external/pixelfoo/target/release/dualmaze apps/
|
||||
fi
|
||||
|
||||
echo "Setup done"
|
Reference in New Issue
Block a user