#!/bin/sh # Fetch minimal third-party dependencies set -e echo "Initializing demo64k dependencies..." mkdir -p third_party if [ ! -f third_party/miniaudio.h ]; then echo "Fetching miniaudio.h..." curl -L https://raw.githubusercontent.com/mackron/miniaudio/master/miniaudio.h -o third_party/miniaudio.h else echo "miniaudio.h already present." fi # wgpu-native submodule if [ ! -d third_party/wgpu-native ]; then echo "Fetching wgpu-native submodule..." git submodule update --init --recursive else echo "wgpu-native submodule already present." fi if [ ! -f third_party/wgpu-native/target/release/libwgpu_native.a ]; then echo "Building wgpu-native static library..." (cd third_party/wgpu-native && make lib-native) else echo "wgpu-native static library already built." fi echo "Done."