Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fedac/native: bundle lib/percussion.mjs into initramfs

notepat.mjs imports `/lib/percussion.mjs` (commit 1828b31db made the drum
synth shared between web + native), but neither initramfs build script
copied the file from system/public/aesthetic.computer/lib/. Boot crashed
with:

[js] Module not found, stubbing: /lib/percussion.mjs
[js] Module error: SyntaxError: Could not find export 'PERCUSSION_NAMES'
[ac-native] FATAL: Cannot load /pieces/notepat.mjs

Add percussion.mjs to the bundled-libs list in both build paths:
- docker-build.sh (oven path)
- build-and-flash-initramfs.sh (local-build path)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+2 -2
+1 -1
fedac/native/docker-build.sh
··· 610 610 # These are pure JS with no DOM/browser deps — work in QuickJS as-is. 611 611 # The module loader resolves "../lib/X.mjs" → "/lib/X.mjs" in the initramfs. 612 612 mkdir -p "$IROOT/lib" 613 - for libmjs in melody-parser.mjs notepat-convert.mjs note-colors.mjs num.mjs; do 613 + for libmjs in melody-parser.mjs notepat-convert.mjs note-colors.mjs num.mjs percussion.mjs; do 614 614 SRC_LIB="$SRC/system/public/aesthetic.computer/lib/$libmjs" 615 615 if [ -f "$SRC_LIB" ]; then 616 616 cp "$SRC_LIB" "$IROOT/lib/$libmjs"
+1 -1
fedac/native/scripts/build-and-flash-initramfs.sh
··· 237 237 # Copy shared JS libraries needed by pieces (pure JS, no browser deps) 238 238 AC_LIB_DIR="${NATIVE_DIR}/../../system/public/aesthetic.computer/lib" 239 239 mkdir -p "${INITRAMFS_DIR}/lib" 240 - for lib_file in melody-parser.mjs notepat-convert.mjs note-colors.mjs; do 240 + for lib_file in melody-parser.mjs notepat-convert.mjs note-colors.mjs percussion.mjs num.mjs; do 241 241 if [ -f "${AC_LIB_DIR}/${lib_file}" ]; then 242 242 cp "${AC_LIB_DIR}/${lib_file}" "${INITRAMFS_DIR}/lib/" 243 243 fi