Files
iptvnator/apps
4grayandClaude Opus 5 d55b5ee774 fix(embedded-mpv): resolve upstream node-gyp instead of the electron fork
All six packaged build jobs failed on the previous commit with
`[embedded-mpv] Unable to resolve @electron/node-gyp.`

`build-embedded-mpv.js` scanned `node_modules/.pnpm` for an
`@electron+node-gyp@*` directory. That package was never declared here — it
was only in the tree as a transitive of `@electron/rebuild` 3. rebuild 4,
which electron-builder 26.15.3 pulls in, switched to upstream
`node-gyp@^12.2.0` and dropped the fork, so the scan found nothing.

Follow the same move: declare `node-gyp` as a devDependency and resolve its
bin with `require.resolve`. That also removes the pnpm store-layout scan, which
is what made a transitive dependency look like a build input in the first
place. The Electron target still comes from the `npm_config_*` env, not from
which node-gyp binary runs.

Verified by building the addon for real against Electron 41
(`IPTVNATOR_EMBEDDED_MPV_ALLOW_HOMEBREW=1 nx run
electron-backend:build-embedded-mpv` -> `gyp info ok`, `embedded_mpv.node`,
frame reader and helper all produced).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 10:35:08 +02:00
..