mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-16 20:22:21 +03:00
detectPlatform()/detectArch() read the module's process.platform/process.arch, which Turbopack `next build` (run only on Linux) constant-folds, pruning every Windows/arm64 branch from the published npm artifact — so the embedded CLIProxyAPI installer downloads the Linux ELF binary on Windows. Switch to runtime os.platform()/ os.arch() calls (the repo's established anti-fold pattern) so the Windows/ARM branches survive any build machine. Add a regression guard mocking os.platform()/os.arch() to win32/arm64 asserting the Windows/ARM path is reachable — RED before, GREEN after.