Popcorn-desktop: Error: File not found with singular glob while yarn dist --platforms=win64 on Arch Linux x64

Created on 26 Sep 2020  ·  10Comments  ·  Source: popcorn-official/popcorn-desktop

Hi all.
While trying to compile from latest development src for Win64 I get the following error on Arch Linux x64
Installation on Linux completed successfully.

Error: File not found with singular glob: /home/vagelis/Documents/popcorn-desktop-development/build/Popcorn-Time-0.4.4-win64-Setup.exe (if this was purposeful, use `allowEmpty` option)
    at Glob.<anonymous> (/home/vagelis/Documents/popcorn-desktop-development/node_modules/glob-stream/readable.js:84:17)
    at Object.onceWrapper (events.js:421:26)
    at Glob.emit (events.js:314:20)
    at Glob.EventEmitter.emit (domain.js:486:12)
    at Glob._finish (/home/vagelis/Documents/popcorn-desktop-development/node_modules/glob/glob.js:197:8)
    at done (/home/vagelis/Documents/popcorn-desktop-development/node_modules/glob/glob.js:182:14)
    at Glob._processSimple2 (/home/vagelis/Documents/popcorn-desktop-development/node_modules/glob/glob.js:688:12)
    at /home/vagelis/Documents/popcorn-desktop-development/node_modules/glob/glob.js:676:10
    at Glob._stat2 (/home/vagelis/Documents/popcorn-desktop-development/node_modules/glob/glob.js:772:12)
    at lstatcb_ (/home/vagelis/Documents/popcorn-desktop-development/node_modules/glob/glob.js:764:12)
[15:48:26] 'dist' errored after 1.23 min
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It's seems that this has changed from gulp 3 to gulp 4

https://github.com/gulpjs/gulp/issues/2282

Most helpful comment

edit: i updated node

when building i get the following output:
npm ERR! missing: colour@latest, required by [email protected]
npm ERR! missing: optjs@latest, required by [email protected]
npm ERR! missing: vtt.js@git+https://github.com/gkatsev/vtt.js.git#vjs-v0.12.1, required by video.[email protected]
npm ERR! missing: http-node@github:feross/http-node#webtorrent, required by [email protected]

yet, it builds the installer and for some reason it now runs after installing. yhey!

All 10 comments

@vageliskatsiotis @riclas , I think you have another error related to makensis before the error you show both us. (Here and in #1719 )

Plz, Install makensis v3+ (nsis on windows) and retry.

My config just in case:

$ node -v && npm -v && yarn -v && makensis -version
v13.11.0
6.13.7
1.22.10
v3.05-2

my logs (ubuntu 20.04)

yarn dist --platforms=win64
yarn run v1.22.10
$ gulp dist --platforms=win64
[18:58:40] Using gulpfile ~/dev/butter/popcorn-desktop/gulpfile.js
[18:58:40] Starting 'dist'...
[18:58:40] Starting 'build'...
[18:58:40] Starting 'injectgit'...
Branch: development
Commit: 91a57276
[18:58:40] Finished 'injectgit' after 27 ms
[18:58:40] Starting 'css'...
Stylus files compiled in /home/anto/dev/butter/popcorn-desktop/src/app/themes/
[18:58:48] Finished 'css' after 7.4 s
[18:58:48] Starting 'nwjs'...
Error: Command failed: npm ls --production=true --parseable=true
npm ERR! missing: colour@latest, required by [email protected]
npm ERR! missing: optjs@latest, required by [email protected]
npm ERR! missing: vtt.js@git+https://github.com/gkatsev/vtt.js.git#vjs-v0.12.1, required by [email protected]
npm ERR! missing: http-node@github:feross/http-node#webtorrent, required by [email protected]

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:547:15)
    at maybeClose (internal/child_process.js:1026:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'npm ls --production=true --parseable=true'
}
Using v0.44.5 (sdk)
Create cache folder in /home/anto/dev/butter/popcorn-desktop/cache/0.44.5-sdk
Downloading: https://get.popcorntime.app/repo/nw/v0.44.5/nwjs-sdk-v0.44.5-win-x64.zip
  downloading [====================] 100% 0.0s

Create release folder in /home/anto/dev/butter/popcorn-desktop/build/Popcorn-Time/win64
[19:01:47] Finished 'nwjs' after 2.98 min
[19:01:47] Starting '<anonymous>'...
[19:01:47] Finished '<anonymous>' after 1.46 ms
[19:01:47] Finished 'build' after 3.1 min
[19:01:47] Starting 'compresszip'...
Packaging zip for: win64
win64 zip packaged in /home/anto/dev/butter/popcorn-desktop/build
[19:02:55] Finished 'compresszip' after 1.12 min
[19:02:55] Starting 'deb'...
No `deb` task for: win64
[19:02:55] Finished 'deb' after 1.79 ms
[19:02:55] Starting 'mac-pkg'...
Packaging deb is only possible on osx
[19:02:55] Finished 'mac-pkg' after 767 μs
[19:02:55] Starting 'nsis'...
Packaging nsis for: win64
win64 nsis packaged in /home/anto/dev/butter/popcorn-desktop/build
[19:07:15] Finished 'nsis' after 4.32 min
[19:07:15] Starting 'prepareUpdater'...
No `compress` task for: win64
[19:07:15] Finished 'prepareUpdater' after 703 μs
[19:07:15] Starting 'prepareUpdater:win'...
win64 zip packaged in /home/anto/dev/butter/popcorn-desktop/build
[19:07:21] Finished 'prepareUpdater:win' after 6.09 s
[19:07:21] Starting 'compressUpdater'...
Windows updater is already compressed
[19:07:21] Finished 'compressUpdater' after 1.4 ms
[19:07:21] Starting 'cleanForDist'...
Deleted: 
 /home/anto/dev/butter/popcorn-desktop/build/Popcorn-Time
[19:07:22] Finished 'cleanForDist' after 1.88 s
[19:07:22] Starting 'clean:updater'...
Nothing to delete
[19:07:22] Finished 'clean:updater' after 1.39 ms
[19:07:22] Starting 'clean:updater:win'...
Deleted build files :
 /home/anto/dev/butter/popcorn-desktop/build/update.exe
[19:07:23] Finished 'clean:updater:win' after 22 ms
[19:07:23] Starting '<anonymous>'...
[19:07:23] Finished '<anonymous>' after 352 μs
[19:07:23] Finished 'dist' after 8.7 min
Done in 523.29s.

Probably, some little improvements to do in the gulpfile... like checking makensis version >3 (v2 was generating issue) and mac-pkg task saying 'deb' instead of 'pkg'.

Let me know if it solve your issues or not.

@Persei08 Windows build throws this now.. I've installled nsis 3 also.

C:\Users\Vagelis\Downloads\popcorn-desktop-development>yarn install --ignore-engines
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[-/4] ⢀ waiting...
[-/4] ⢀ waiting...
[3/4] ⢀ utf-8-validate
error C:\Users\Vagelis\Downloads\popcorn-desktop-development\node_modules\guppy-pre-commit: Command failed.
Exit code: 4
Command: guppy pre-commit
Arguments:
Directory: C:\Users\Vagelis\Downloads\popcorn-desktop-development\node_modules\guppy-pre-commit
Output:

Persei i did install nsis and the build finished fine. but when i use it to install the app, it doesn't launch

@vageliskatsiotis is your branch updates to latest commit ? I don't have this issue here

$ yarn install --ignore-engines
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 120.36s.

Can you give me the output of:

  • node -v && npm -v && yarn -v && makensis -version
    and also git log --oneline -1

@riclas, I'll try again, and tell you more

@riclas for me everything is working the setup.exe works as expected and the installed PCT too.

I suggest you guys try again but with same parameters than me.

First check your programs versions
node -v : v13.11.0
npm -v : 6.13.7
yarn -v : 1.22.5
makensis -VERSION (linux : 3.05-2) or makensis /VERSION (windows : 3.06) ... but i think it should be at least 3.01 if I remember well

Then in your local branch, check you have the latest commit:
git log --oneline -1 => (91a57276 (...) Merge pull request #1732 from kiriles90/toggle_subs_keyb)

if not, then update it.

if everything ok, then do git clean -f
then git reset hard to be sure you doesn't have any modified file
then yarn clean.

then all the usual steps :

  • yarn config set yarn-offline-mirror ./node_modules/
  • yarn install --ignore-engines
  • yarn dist --platforms=win64

If you have issue at some point, paste your terminal output.

edit: oops, I forgot too... Before installing PCT, delete '%localappdata%\Popcorn-Time\User Data' so it start with clean profile

edit: i updated node

when building i get the following output:
npm ERR! missing: colour@latest, required by [email protected]
npm ERR! missing: optjs@latest, required by [email protected]
npm ERR! missing: vtt.js@git+https://github.com/gkatsev/vtt.js.git#vjs-v0.12.1, required by video.[email protected]
npm ERR! missing: http-node@github:feross/http-node#webtorrent, required by [email protected]

yet, it builds the installer and for some reason it now runs after installing. yhey!

yet, it builds the installer and for some reason it now runs after installing. yhey!

Ok, nice ;)

the npm ERR lines here can be ignored, they are related to npm ls --production=true --parseable=true cmd, which is called to get node_modules list and If i remember correctly then be passed to nw-builder... this error happen since months (if not years) ... not sure if it somehow works or if something else fix the thing later, but at the end the app works :D

I'll give it another shot and let you know soon

Confirmed built on Arch x64 for Windows 64, installed and ran on Windows 10. One thing though, installation on top of previous installation removes all config and dbs from data folder and no desktop shortcut in the end.

@vageliskatsiotis Ok thx for feedback. For the installer issue which delete previous install conf/settings, see issues #1579 and #1247
So, i close this one since you both now have a working build. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jojobling picture jojobling  ·  4Comments

allan-andrade picture allan-andrade  ·  3Comments

vanhelsing2042 picture vanhelsing2042  ·  4Comments

dollhaus picture dollhaus  ·  3Comments

rohinarora picture rohinarora  ·  4Comments