diff options
| author | 2022-07-21 22:02:57 -0400 | |
|---|---|---|
| committer | 2022-07-21 22:02:57 -0400 | |
| commit | 908e17ee1f85472237aae329f8605a985841a4e8 (patch) | |
| tree | 860564f2856af5c7cacdde3e1c40066c362dea19 /scripts | |
| parent | 61794ae259000f1d0e463577d750f9d5ea45ac71 (diff) | |
| download | mauri-908e17ee1f85472237aae329f8605a985841a4e8.tar.gz mauri-908e17ee1f85472237aae329f8605a985841a4e8.tar.bz2 mauri-908e17ee1f85472237aae329f8605a985841a4e8.zip | |
temporary fix for new assets, major cleanup
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/random.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/random.sh b/scripts/random.sh new file mode 100755 index 0000000..446a4a4 --- /dev/null +++ b/scripts/random.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +#cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + +WALLPAPERS_PATH=workshop_wallpapers_11-8-21 +BUILD_DIR=build-release + +export mesa_glthread=true + +if [[ $1 == "audio" ]] +then + while : ; do + DIR=$(find $WALLPAPERS_PATH -maxdepth 1 -type d | shuf -n 1) + RES=$(cat $DIR/project.json | jq '.["general"]["supportsaudioprocessing"]') + [[ "$RES" == 'null' || "$RES" == 'false' ]] || break + done +elif [[ $1 == "safe" ]] +then + while : ; do + DIR=$(find $WALLPAPERS_PATH -maxdepth 1 -type d | shuf -n 1) + RES=$(cat $DIR/project.json | jq '.["contentrating"]') + [[ "$RES" == 'null' || "$RES" != '"Everyone"' ]] || break + done +else + DIR=$(find $WALLPAPERS_PATH -maxdepth 1 -type d | shuf -n 1) +fi + +echo $DIR + +cd $BUILD_DIR +./mauri ../$DIR/scene.pkg +cd .. |