Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

tools/release/rl3-mac.sh: the play step runs with RAEA_AUDIO_MUTE=1, so a clean-machine check makes no sound on the Mac's speakers while someone works at it

shinyobjectzbeb69f40bc99
diff --git a/tools/release/rl3-mac.sh b/tools/release/rl3-mac.sh
index 619dd8ab..24f5d5ad 100755
--- a/tools/release/rl3-mac.sh
+++ b/tools/release/rl3-mac.sh
@@ -18,7 +18,8 @@ SB
ok=0
step() { # NAME DIR ARGS...
local n=$1 d=$2; shift 2; local t0=$(date +%s)
- (cd $d && sandbox-exec -f $R/sb env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin HOME=$R/home RAEA_NO_TREE=1 RAEA_API=http://127.0.0.1:9 RAEA_GEN_API=http://127.0.0.1:9 $R/raea/bin/raea "$@") > $R/$n.log 2>&1
+ # RAEA_AUDIO_MUTE: the play step's game makes no sound on the Mac's speakers while someone works at it
+ (cd $d && sandbox-exec -f $R/sb env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin HOME=$R/home RAEA_NO_TREE=1 RAEA_AUDIO_MUTE=1 RAEA_API=http://127.0.0.1:9 RAEA_GEN_API=http://127.0.0.1:9 $R/raea/bin/raea "$@") > $R/$n.log 2>&1
local code=$?; echo "mac $n: exit $code, $(( $(date +%s) - t0 ))s"; grep -v '^\s*$' $R/$n.log | tail -2 | cut -c1-160
[ $code = 0 ] || ok=1
}