miraclx/freyr-js

pkg-packaged execuable cannot run youtube-dl

Open

#158 aperta il 10 mar 2022

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (154 fork)user submission
enhancementhelp wanted

Metriche repository

Star
 (2279 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Log from a pkg executable on Linux:

       | ➤ Collating sources...
       |  ➤ [•] YouTube Music...[success, found 5 sources]
       | ➤ Awaiting audiofeeds...(failed: [Command failed with ENOENT: /snapshot/freyr-js/node_modules/youtube-dl-exec/bin/youtube-dl --socket-timeout 20 --no-cache-dir --dump-single-json -- L0yOCIqqBWM
spawn /snapshot/freyr-js/node_modules/youtube-dl-exec/bin/youtube-dl ENOENT])

When packaging with pkg I get these warnings:

  The file must be distributed with executable as %2.
  %1: node_modules/open/xdg-open
  %2: path-to-executable/xdg-open
> Warning Cannot include file %1 into executable.
  The file must be distributed with executable as %2.
  %1: node_modules/open/xdg-open
  %2: path-to-executable/xdg-open
> Warning Failed to make bytecode node16-x64 for file /snapshot/freyr-js/node_modules/string-width/index.js
> Warning Failed to make bytecode node16-x64 for file /snapshot/freyr-js/node_modules/strip-ansi/index.js
> Warning Failed to make bytecode node16-x64 for file /snapshot/freyr-js/node_modules/strip-ansi/node_modules/ansi-regex/index.js
> Warning Failed to make bytecode node16-x64 for file /snapshot/freyr-js/node_modules/string-width/index.js
> Warning Failed to make bytecode node16-x64 for file /snapshot/freyr-js/node_modules/strip-ansi/index.js
> Warning Failed to make bytecode node16-x64 for file /snapshot/freyr-js/node_modules/strip-ansi/node_modules/ansi-regex/index.js
> Warning Failed to make bytecode node16-x64 for file C:\snapshot\freyr-js\node_modules\string-width\index.js
> Warning Failed to make bytecode node16-x64 for file C:\snapshot\freyr-js\node_modules\strip-ansi\index.js
> Warning Failed to make bytecode node16-x64 for file C:\snapshot\freyr-js\node_modules\strip-ansi\node_modules\ansi-regex\index.js

Seems to be an issue with pkg because it's also using Windows paths on linux.

Guida contributor