From 452efcc53e374ba22178b4bf0113e2edebc0a02e Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 5 Dec 2026 10:48:04 +0000 Subject: [PATCH] =?UTF-8?q?Emulador=20p=C3=BAblico:=20stems.js=20en=20emu/?= =?UTF-8?q?=20(Studio=20daba=20404)=20y=20chequeo=20de=20los=20archivos=20?= =?UTF-8?q?del=20emulador?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh --- .github/workflows/emulator.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))"