diff --git a/.github/workflows/emulator.yml b/.github/workflows/emulator.yml index b42e8cac..7ed05ced 100644 --- a/.github/workflows/emulator.yml +++ b/.github/workflows/emulator.yml @@ -249,9 +249,13 @@ jobs: run: | mkdir -p build/pages/emu # (ports) devices.html beside what it loads (worklet.js, felucca.wasm, felucca_hp.wasm, fonts, index.html) - for f in index.html worklet.js fm1backup.js transfer.js transfer-ui.js pm.js pm-fm.js pm-ui.js felucca.wasm devices.html felucca_hp.wasm fonts SOURCE_COMMIT; do + for f in index.html worklet.js stems.js fm1backup.js transfer.js transfer-ui.js pm.js pm-fm.js pm-ui.js felucca.wasm devices.html felucca_hp.wasm fonts SOURCE_COMMIT; do if [ -e "build/emu/$f" ]; then mv "build/emu/$f" build/pages/emu/; fi done + # (Studio's "stems of a song" loads emu/stems.js as a worker: it was left at the site's root, a 404 under emu/) + for f in index.html worklet.js stems.js fm1backup.js felucca.wasm; do + [ -s "build/pages/emu/$f" ] || { echo "::error::emu/$f missing from the public emulator"; exit 1; } + done # (the owner: "the public emulator with the version picker too") the public pin's page over emu-v's versions if [ -s build/pages/emu-v/index.json ] && [ -f build/pages/emu/index.html ]; then python3 -c "from pathlib import Path; p=Path('build/pages/emu/index.html'); h=p.read_text(); p.write_text(h if 'emu-v/picker.js' in h else h.replace('','\n',1))"