Files
t3code/scripts
Josh Gratton 59ee5c177f desktop build: stage Linux native optional deps for the WSL backend
Windows artifacts also ship the WSL (Linux x64) backend, which loads
Linux-native optional dependencies at runtime -- e.g. ffi-rs's
@yuuang/ffi-rs-linux-x64-gnu. The staged production install set pnpm's
supportedArchitectures to the host platform only (win32/x64), so just the
Windows bindings were fetched. The WSL backend then crash-looped on
require ("Cannot find module '@yuuang/ffi-rs-linux-x64-gnu'") and never
bound its port, surfacing in the app as "Couldn't connect WSL".

For Windows builds, extend supportedArchitectures to also include
linux/x64/glibc so the staged install pulls the Linux optional deps
alongside the Windows ones. Confirmed pnpm then fetches
@yuuang/ffi-rs-linux-x64-gnu into the staged tree.
2026-06-16 14:07:01 -04:00
..