Jitsi-Electron - electron-builder

#1

Hi,

I’m using electron-builder to build jitsi-meet-electron app on windows from linux ubuntu.

So I did :
(https://github.com/electron-userland/electron-builder)

npm install electron-builder --save-dev

I didn’t forget to complete package.json file, by adding “icon” tags.

packagejson

And i added some tags to run npm-dist for windows :

 "pack": "npm run build && electron-builder --dir",
 "dist": "npm run build && electron-builder",
 "pack-win": "npm run build && electron-builder --dir --win",
 "dist-win": "npm run build && electron-builder --win",

After, I installed Wine by following this tutorial : https://wiki.winehq.org/Ubuntu

And when I run : “npm run dist-win”, I get all time those errors :

npm run dist-win

> jitsi-meet-electron@1.1.1 dist-win /home/test/jitsi-meet/jitsi-meet-electron
> npm run build && electron-builder --win


> jitsi-meet-electron@1.1.1 build /home/test/jitsi-meet/jitsi-meet-electron
> webpack --config ./webpack.main.js --mode production && webpack --config ./webpack.renderer.js --mode production

Hash: 7f253c8efab0495436df
Version: webpack 4.27.1
Time: 1573ms
Built at: 2019-05-09 10:46:24
  Asset     Size  Chunks             Chunk Names
main.js  507 KiB       0  [emitted]  main
Entrypoint main = main.js
  [0] external "path" 42 bytes {0} [built]
  [8] external "fs" 42 bytes {0} [built]
  [9] external "electron" 42 bytes {0} [built]
 [10] external "url" 42 bytes {0} [built]
 [18] external "os" 42 bytes {0} [built]
 [21] external "stream" 42 bytes {0} [built]
 [25] external "crypto" 42 bytes {0} [built]
 [29] external "util" 42 bytes {0} [built]
 [34] external "child_process" 42 bytes {0} [built]
 [42] external "events" 42 bytes {0} [built]
 [72] external "http" 42 bytes {0} [built]
 [74] ./main.js 5.33 KiB {0} [built]
[200] external "require('jitsi-meet-electron-utils')" 42 bytes {0} [built]
[211] external "require('electron-debug')" 42 bytes {0} [built]
[212] external "require('electron-reload')" 42 bytes {0} [built]
    + 198 hidden modules
Hash: a43efc56e18ff7a21b81
Version: webpack 4.27.1
Time: 7310ms
Built at: 2019-05-09 10:46:32
                               Asset       Size  Chunks             Chunk Names
6d44496ff4d9cadbdad46a2921a754ff.png    5.8 KiB          [emitted]  
                              app.js    837 KiB       0  [emitted]  app
                          index.html  225 bytes          [emitted]  
Entrypoint app = app.js
  [1] ./node_modules/@atlaskit/theme/dist/esm/index.js + 7 modules 20.4 KiB {0} [built]
      |    8 modules
 [34] external "path" 42 bytes {0} [built]
 [51] external "require('jitsi-meet-electron-utils')" 42 bytes {0} [built]
 [71] external "fs" 42 bytes {0} [built]
 [90] external "assert" 42 bytes {0} [built]
 [91] external "electron" 42 bytes {0} [built]
 [92] external "stream" 42 bytes {0} [built]
 [93] external "os" 42 bytes {0} [built]
[101] (webpack)/buildin/harmony-module.js 573 bytes {0} [built]
[122] (webpack)/buildin/module.js 497 bytes {0} [built]
[247] external "events" 42 bytes {0} [built]
[258] ./app/images/onboarding.png 82 bytes {0} [built]
[356] ./node_modules/moment/locale sync ^\.\/.*$ 2.93 KiB {0} [optional] [built]
[359] external "crypto" 42 bytes {0} [built]
[382] ./app/index.js + 356 modules 829 KiB {0} [built]
      | ./app/index.js 1.03 KiB [built]
      | ./app/features/app/index.js 29 bytes [built]
      | ./app/features/redux/index.js 95 bytes [built]
      | ./app/features/redux/store.js 482 bytes [built]
      | ./app/features/redux/persistor.js 110 bytes [built]
      | ./app/features/redux/middleware.js 385 bytes [built]
      | ./app/features/redux/reducers.js 512 bytes [built]
      | ./app/features/config/index.js 633 bytes [built]
      | ./app/features/navbar/index.js 161 bytes [built]
      | ./app/features/onboarding/index.js 218 bytes [built]
      | ./app/features/settings/index.js 215 bytes [built]
      | ./app/features/conference/index.js 113 bytes [built]
      | ./app/features/router/index.js 149 bytes [built]
      | ./app/features/recent-list/index.js 103 bytes [built]
      | ./app/features/welcome/index.js 55 bytes [built]
      |     + 342 hidden modules
    + 501 hidden modules
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [0] ./node_modules/html-webpack-plugin/lib/loader.js!./app/index.html 379 bytes {0} [built]
    [2] (webpack)/buildin/module.js 497 bytes {0} [built]
        + 1 hidden module
Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
  • electron-builder version=20.40.2
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=dist/builder-effective-config.yaml
  • rebuilding native production dependencies platform=win32 arch=ia32
Error: /usr/bin/node exited with code 1
Output:

> jitsi-meet-electron-utils@0.5.2 install /home/test/jitsi-meet/jitsi-meet-electron/node_modules/jitsi-meet-electron-utils
> prebuild-install || node-gyp rebuild

make : on entre dans le répertoire « /home/test/jitsi-meet/jitsi-meet-electron/node_modules/jitsi-meet-electron-utils/build »
  CXX(target) Release/obj.target/sourceId2Coordinates/node_addons/sourceId2Coordinates/src/index.o
sourceId2Coordinates.target.mk:110: recipe for target 'Release/obj.target/sourceId2Coordinates/node_addons/sourceId2Coordinates/src/index.o' failed
make : on quitte le répertoire « /home/test/jitsi-meet/jitsi-meet-electron/node_modules/jitsi-meet-electron-utils/build »

Error output:
prebuild-install WARN install No prebuilt binaries found (target=3.0.13 runtime=electron arch=ia32 platform=win32)
cc1plus: warning: command line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9:0,
                 from /home/test/.electron-gyp/iojs-3.0.13/deps/v8/include/v8.h:19,
                 from /home/test/.electron-gyp/iojs-3.0.13/src/node.h:54,
                 from ../node_addons/sourceId2Coordinates/src/index.cc:1:
/usr/include/stdint.h:26:10: fatal error: bits/libc-header-start.h: Aucun fichier ou dossier de ce type
 #include <bits/libc-header-start.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Release/obj.target/sourceId2Coordinates/node_addons/sourceId2Coordinates/src/index.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.18.0-18-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/test/jitsi-meet/jitsi-meet-electron/node_modules/jitsi-meet-electron-utils
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jitsi-meet-electron-utils@0.5.2 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the jitsi-meet-electron-utils@0.5.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/test/.npm/_logs/2019-05-09T08_46_43_309Z-debug.log

    at ChildProcess.childProcess.once.code (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/builder-util/src/util.ts:244:14)
    at Object.onceWrapper (events.js:277:13)
    at ChildProcess.emit (events.js:189:13)
    at maybeClose (internal/child_process.js:970:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
From previous event:
    at _rebuild (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/util/yarn.ts:179:5)
    at rebuild (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/out/util/yarn.js:163:19)
    at /home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/util/yarn.ts:20:11
    at Generator.next (<anonymous>)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at _installOrRebuild (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/out/util/yarn.js:71:28)
    at installOrRebuild (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/out/util/yarn.js:55:28)
    at /home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/packager.ts:509:13
    at Generator.next (<anonymous>)
From previous event:
    at Packager.installAppDependencies (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/packager.ts:470:70)
    at /home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/packager.ts:420:20
    at Generator.next (<anonymous>)
From previous event:
    at Packager.doBuild (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/packager.ts:396:24)
    at /home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/packager.ts:366:57
    at Generator.next (<anonymous>)
    at /home/test/jitsi-meet/jitsi-meet-electron/node_modules/graceful-fs/graceful-fs.js:111:16
    at /home/test/jitsi-meet/jitsi-meet-electron/node_modules/graceful-fs/graceful-fs.js:45:10
    at FSReqWrap.args [as oncomplete] (fs.js:140:20)
From previous event:
    at Packager._build (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/packager.ts:335:133)
    at /home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/packager.ts:331:23
    at Generator.next (<anonymous>)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at Packager.build (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/packager.ts:288:14)
    at build (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/app-builder-lib/src/index.ts:59:28)
    at build (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/electron-builder/src/builder.ts:228:10)
    at then (/home/test/jitsi-meet/jitsi-meet-electron/node_modules/electron-builder/src/cli/cli.ts:46:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jitsi-meet-electron@1.1.1 dist-win: `npm run build && electron-builder --win`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the jitsi-meet-electron@1.1.1 dist-win script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/test/.npm/_logs/2019-05-09T08_46_43_405Z-debug.log

Do you have any ideas ?

@saghul
@damencho

Thank you,
Yann

#2

There are no prebuilt artifacts for jitsi-meet-electron-utils nor the robotjs for we use, alas. This means you nmust do the Windows build on a Windows machine.

You can use AppVeyor, see how we did it for jitsi-meet-electron: https://github.com/jitsi/jitsi-meet-electron/blob/master/appveyor.yml

#3

I’m lost when it comes to talk about windows system. What do i need to do ?
Install Electron sources ? Is there the same way to install electron ?
(npm install, npm start, etc.)

if you also have more details about compilation ? (on windows obviously)

Thanks for your reply.

#4

You’ll need to install Nodejs, this package: https://www.npmjs.com/package/windows-build-tools and then cross your fingers and proceed normally.

#5

Is there another tutorial because it’s not quite working ?

A lot of commands are not working on windows (nmp start, etc.)

#6

I don’t know of any tutorial. Does npm run dist work though?

#7

I don’t know how the file structure should be on windows, but I have only two folders on my jitsi-meet-electron (“app” and “resources”). Otherwise, I didn’t succeed to built app in order to compile it in an executable.

#8

No change is needed with regards to file structure. All AppVeyor runs for our Windows builds is npm install and npm run dist.

#9

I did :

npm install electron -g
git clone https://github.com/jitsi/jitsi-meet-electron jitsi-meet-electron

But when I execute this command :
npm install

Erreur …

CMD.EXE a été démarré avec le chemin d’accès comme répertoire en
cours. Les chemins d’accès UNC ne sont pas prise en charge. Utilisation
du répertoire Windows par défaut.
npm ERR! path C:\Windows\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Windows\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

It looks like it’s searching in a root folder. But when i’m executing the command, it’s sure i’m located in my app folder.

#10

You don’t need to install electron globnally. Not sure if that’s the cuase though.

#11

When running npm run dist, i get the same type of error message as on ubuntu.
(npm run build --> works, npm start --> doesn’t work (no errors but nothing is happening))

npm run dist

> jitsi-meet-electron@1.1.1 dist C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron
> npm run build && electron-builder


> jitsi-meet-electron@1.1.1 build C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron
> webpack --config ./webpack.main.js --mode production && webpack --config ./webpack.renderer.js --mode production

Hash: 3194d4c75f4d61eb412f
Version: webpack 4.27.1
Time: 982ms
Built at: 2019-05-10 02:48:19
  Asset     Size  Chunks             Chunk Names
main.js  506 KiB       0  [emitted]  main
Entrypoint main = main.js
  [0] external "path" 42 bytes {0} [built]
  [8] external "fs" 42 bytes {0} [built]
  [9] external "electron" 42 bytes {0} [built]
 [10] external "url" 42 bytes {0} [built]
 [18] external "os" 42 bytes {0} [built]
 [21] external "stream" 42 bytes {0} [built]
 [25] external "crypto" 42 bytes {0} [built]
 [29] external "util" 42 bytes {0} [built]
 [34] external "child_process" 42 bytes {0} [built]
 [42] external "events" 42 bytes {0} [built]
 [72] external "http" 42 bytes {0} [built]
 [74] ./main.js 5.54 KiB {0} [built]
[200] external "require('jitsi-meet-electron-utils')" 42 bytes {0} [built]
[211] external "require('electron-debug')" 42 bytes {0} [built]
[212] external "require('electron-reload')" 42 bytes {0} [built]
    + 198 hidden modules
Hash: 6bf7da9096b67c8f8dbc
Version: webpack 4.27.1
Time: 4919ms
Built at: 2019-05-10 02:48:25
                               Asset       Size  Chunks             Chunk Names
6d44496ff4d9cadbdad46a2921a754ff.png    5.8 KiB          [emitted]
                              app.js    836 KiB       0  [emitted]  app
                          index.html  238 bytes          [emitted]
Entrypoint app = app.js
  [1] ./node_modules/@atlaskit/theme/dist/esm/index.js + 7 modules 20.4 KiB {0} [built]
      |    8 modules
 [34] external "path" 42 bytes {0} [built]
 [51] external "require('jitsi-meet-electron-utils')" 42 bytes {0} [built]
 [71] external "fs" 42 bytes {0} [built]
 [90] external "assert" 42 bytes {0} [built]
 [91] external "electron" 42 bytes {0} [built]
 [92] external "stream" 42 bytes {0} [built]
 [93] external "os" 42 bytes {0} [built]
[101] (webpack)/buildin/harmony-module.js 573 bytes {0} [built]
[122] (webpack)/buildin/module.js 497 bytes {0} [built]
[247] external "events" 42 bytes {0} [built]
[258] ./app/images/onboarding.png 82 bytes {0} [built]
[356] ./node_modules/moment/locale sync ^\.\/.*$ 2.93 KiB {0} [optional] [built]
[359] external "crypto" 42 bytes {0} [built]
[382] ./app/index.js + 356 modules 830 KiB {0} [built]
      | ./app/index.js 1.04 KiB [built]
      | ./app/features/app/index.js 29 bytes [built]
      | ./app/features/redux/index.js 95 bytes [built]
      | ./app/features/redux/store.js 482 bytes [built]
      | ./app/features/redux/persistor.js 110 bytes [built]
      | ./app/features/redux/middleware.js 385 bytes [built]
      | ./app/features/redux/reducers.js 512 bytes [built]
      | ./app/features/config/index.js 640 bytes [built]
      | ./app/features/navbar/index.js 161 bytes [built]
      | ./app/features/onboarding/index.js 218 bytes [built]
      | ./app/features/settings/index.js 215 bytes [built]
      | ./app/features/conference/index.js 113 bytes [built]
      | ./app/features/router/index.js 149 bytes [built]
      | ./app/features/recent-list/index.js 103 bytes [built]
      | ./app/features/welcome/index.js 55 bytes [built]
      |     + 342 hidden modules
    + 501 hidden modules
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [0] ./node_modules/html-webpack-plugin/lib/loader.js!./app/index.html 405 bytes {0} [built]
    [2] (webpack)/buildin/module.js 497 bytes {0} [built]
        + 1 hidden module
  • electron-builder version=20.38.3
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=dist\builder-effective-config.yaml
Error: Unresolved node modules: jitsi-meet-electron-utils
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\util\packageDependencies.ts:112:21
From previous event:
    at Collector.resolveUnresolvedHoisted (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\util\packageDependencies.ts:88:81)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\util\packageDependencies.ts:83:18
    at Generator.next (<anonymous>)
    at processImmediate (internal/timers.js:439:21)
From previous event:
    at Collector.collect (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\util\packageDependencies.ts:76:28)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\util\packageDependencies.ts:47:44
    at Generator.next (<anonymous>)
    at _getProductionDependencies (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\packageDependencies.js:92:37)
    at getProductionDependencies (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\packageDependencies.js:83:37)
    at Lazy.<anonymous> (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:138:24)
    at Generator.next (<anonymous>)
    at Lazy.get value [as value] (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\lazy-val\src\main.ts:18:23)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\yarn.js:166:90
From previous event:
    at _getProductionDependencies (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\packageDependencies.js:92:37)
    at getProductionDependencies (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\packageDependencies.js:83:37)
    at Lazy.<anonymous> (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:138:24)
    at Generator.next (<anonymous>)
From previous event:
    at Lazy.get value [as value] (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\lazy-val\src\main.ts:18:23)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\yarn.js:166:90
    at Generator.next (<anonymous>)
From previous event:
    at _rebuild (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\util\yarn.ts:179:5)
    at rebuild (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\yarn.js:163:19)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\util\yarn.ts:20:11
    at Generator.next (<anonymous>)
    at processImmediate (internal/timers.js:439:21)
From previous event:
    at _installOrRebuild (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\yarn.js:71:28)
    at installOrRebuild (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\out\util\yarn.js:55:28)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:511:13
    at Generator.next (<anonymous>)
From previous event:
    at Packager.installAppDependencies (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:472:70)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:420:20
    at Generator.next (<anonymous>)
From previous event:
    at Packager.doBuild (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:396:24)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:366:57
    at Generator.next (<anonymous>)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\graceful-fs\graceful-fs.js:111:16
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\graceful-fs\graceful-fs.js:45:10
    at FSReqCallback.oncomplete (fs.js:136:23)
From previous event:
    at Packager._build (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:335:133)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:331:23
    at Generator.next (<anonymous>)
    at processImmediate (internal/timers.js:439:21)
From previous event:
    at Packager.build (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\packager.ts:288:14)
    at build (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\app-builder-lib\src\index.ts:59:28)
    at build (C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\electron-builder\src\builder.ts:227:10)
    at C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron\node_modules\electron-builder\src\cli\cli.ts:46:19
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jitsi-meet-electron@1.1.1 dist: `npm run build && electron-builder`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jitsi-meet-electron@1.1.1 dist script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Yann\AppData\Roaming\npm-cache\_logs\2019-05-10T00_48_28_911Z-debug.log
PS C:\Users\Yann\Desktop\jitsi-meet-electron\jitsi-meet-electron>
#12

What does this log say? Also, did you make any changes to the project or are you just building straight from master?

#13

i’m not on the same computer but i get similar errors.

But the thing I’m sure is : even if i follow this tutorial (https://github.com/octalImage/robotjs#building), I get errors about “robotjs”.

I was thinking problem are resolved but it’s not.
When doing npm install (it tells me about robotjs)
So :

npm install --global --production windows-build-tools ==> works
npm install -g node -gyp ==> works
but when node-gyp rebuild ==> doesn’t work

and when doing a new time “npm install” same problem about “robotjs”
(like here : Jitsi-Electron - NPM Install Error)

then when doing “npm run dist”, problem above.
(logs aren’t really more interesting)

#14

On windows :
I tried to all reinstall. Now I have node.js 10.15 as it recommanded to use, and npm 6.4.1

npm install worked, but “npm start” stops at “+1 hidden module” and nothing is happening.

C:\jitsi-meet-electron\jitsi-meet-electron>npm start

> jitsi-meet-electron@1.1.1 start C:\jitsi-meet-electron\jitsi-meet-electron
> webpack --config ./webpack.main.js --mode development && concurrently 'npm:watch' 'electron ./build/main.js'

Hash: 6afe5565eea1b6734724
Version: webpack 4.27.1
Time: 1835ms
Built at: 2019-05-14 10:11:40
  Asset      Size  Chunks             Chunk Names
main.js  1.43 MiB    main  [emitted]  main
Entrypoint main = main.js
[./main.js] 5.54 KiB {main} [built]
[assert] external "assert" 42 bytes {main} [built]
[child_process] external "child_process" 42 bytes {main} [built]
[crypto] external "crypto" 42 bytes {main} [built]
[electron] external "electron" 42 bytes {main} [built]
[electron-debug] external "require('electron-debug')" 42 bytes {main} [built]
[electron-reload] external "require('electron-reload')" 42 bytes {main} [built]
[events] external "events" 42 bytes {main} [built]
[fs] external "fs" 42 bytes {main} [built]
[http] external "http" 42 bytes {main} [built]
[https] external "https" 42 bytes {main} [built]
[jitsi-meet-electron-utils] external "require('jitsi-meet-electron-utils')" 42 bytes {main} [built]
[os] external "os" 42 bytes {main} [built]
[path] external "path" 42 bytes {main} [built]
[url] external "url" 42 bytes {main} [built]
    + 198 hidden modules
[1] 'electro' n'est pas reconnu en tant que commande interne
[1] ou externe, un programme ex�cutable ou un fichier de commandes.
[2] '.' n'est pas reconnu en tant que commande interne
[2] ou externe, un programme ex�cutable ou un fichier de commandes.
[1] electro exited with code 1
[2] ./build/main.js' exited with code 1
[watch]
[watch] > jitsi-meet-electron@1.1.1 watch C:\jitsi-meet-electron\jitsi-meet-electron
[watch] > webpack --config ./webpack.renderer.js --mode development --watch --watch-poll
[watch]
[watch]
[watch] webpack is watching the files...
[watch]
[watch] Hash: f8756bcf27a27d179795
[watch] Version: webpack 4.27.1
[watch] Time: 9721ms
[watch] Built at: 2019-05-14 10:11:56
[watch]                                Asset       Size  Chunks             Chunk Names
[watch] 6d44496ff4d9cadbdad46a2921a754ff.png    5.8 KiB          [emitted]
[watch]                               app.js   4.48 MiB     app  [emitted]  app
[watch]                           index.html  238 bytes          [emitted]
[watch] Entrypoint app = app.js
[watch] [./app/features/app/index.js] 29 bytes {app} [built]
[watch] [./app/features/conference/index.js] 113 bytes {app} [built]
[watch] [./app/features/config/index.js] 640 bytes {app} [built]
[watch] [./app/features/navbar/index.js] 161 bytes {app} [built]
[watch] [./app/features/onboarding/index.js] 218 bytes {app} [built]
[watch] [./app/features/recent-list/index.js] 103 bytes {app} [built]
[watch] [./app/features/redux/index.js] 95 bytes {app} [built]
[watch] [./app/features/redux/middleware.js] 385 bytes {app} [built]
[watch] [./app/features/redux/persistor.js] 110 bytes {app} [built]
[watch] [./app/features/redux/reducers.js] 512 bytes {app} [built]
[watch] [./app/features/redux/store.js] 482 bytes {app} [built]
[watch] [./app/features/router/index.js] 149 bytes {app} [built]
[watch] [./app/features/settings/index.js] 215 bytes {app} [built]
[watch] [./app/features/welcome/index.js] 55 bytes {app} [built]
[watch] [./app/index.js] 1.04 KiB {app} [built]
[watch]     + 867 hidden modules
[watch] Child html-webpack-plugin for "index.html":
[watch]      1 asset
[watch]     Entrypoint undefined = index.html
[watch]     [./node_modules/html-webpack-plugin/lib/loader.js!./app/index.html] 405 bytes {0} [built]
[watch]     [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
[watch]         + 1 hidden module
#15

The command is not designed to work on Windows, but if you look in package.json and run the 2 individual commands that compose the start one in 2 terminals it should work.

#16

Finally, I just executed “npm run dist” and it worked … I don’t know why I wanted to execute “npm start” because I already do it on my dev environment.

Thanks anyway.

1 Like