miraclx/freyr-js

pkg-packaged execuable cannot run youtube-dl

Open

#158 opened on Mar 10, 2022

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (154 forks)user submission
enhancementhelp wanted

Repository metrics

Stars
 (2,279 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide