Emulador público: stems.js en emu/ (Studio daba 404) y chequeo de los archivos del emulador

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-12-05 10:48:04 +00:00
1 parent f32a65a77f
commit 452efcc53e
1 file changed
+5 -1
+5 -1
View File
@@ -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('</body>','<script src=\"../emu-v/picker.js\"></script>\n</body>',1))"