Cloudflare Pages / Build and verify the site (push) Successful in 3m29s
Use the verified dependency lock across native hosts and bundled apps. Preserve saved styles, local app reactivation, and offline packages while integrating the latest practice, Habits, Lumi, and figure preview updates.
23 lines
1.3 KiB
Bash
23 lines
1.3 KiB
Bash
#!/bin/sh
|
|
set -eu
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
bin=${1:-"$root/build/packages/ziran/build/bin"}
|
|
work=$root/build/audio-cue-assets
|
|
generated=$work/generated
|
|
rm -rf "$generated"
|
|
mkdir -p "$generated"
|
|
"$bin/ziran" build --target=c --define PLATFORM_WEB --root "$root/tests" \
|
|
--module-path "$root/src" --module-path "$root/build/packages/kryon/src/ui" \
|
|
--module-path "$root/build/packages/kryon/src/backend" --module-path "$root/build/packages/ziran/std" \
|
|
--module-path "$root/build/packages/mesh-client" --module-path "$root/build/packages/css/src" \
|
|
--module-path "$root/build/packages/game2d/src" $(sh "$root/scripts/package-paths.sh" "$root/build/packages") \
|
|
-o "$generated" "$root/tests/audio_cue_assets_test.zi"
|
|
# No embedded sounds: the cues come only from the Practices package.
|
|
python3 "$root/scripts/embed-app-assets.py" "$work/assets.c"
|
|
"${CC:-cc}" -std=c11 -O0 -ffunction-sections -fdata-sections \
|
|
-I"$root/build/packages/ziran/include" -I"$generated" -I"$root/src/app" \
|
|
"$generated"/*.c "$work/assets.c" "$root/tests/audio_first_cue_host.c" \
|
|
-Wl,--gc-sections -lm -o "$work/test"
|
|
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS "$work/test"
|
|
echo 'Cue sounds load when wanted and again once Practices finishes opening'
|