Wire-desktop: Failure by Wire Desktop build on Linux

Created on 9 Nov 2016  Â·  2Comments  Â·  Source: wireapp/wire-desktop

€ grunt linux-prod --verbose
Initializing
Command-line options: --verbose

Reading "Gruntfile.coffee" Gruntfile...OK

Registering Gruntfile tasks.

Registering "grunt-contrib-clean" local Npm module tasks.
Reading /usr/src/wireapp/wire-desktop/node_modules/grunt-contrib-clean/package.json...OK
Parsing /usr/src/wireapp/wire-desktop/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK

  • clean

Registering "grunt-electron-installer" local Npm module tasks.
Reading /usr/src/wireapp/wire-desktop/node_modules/grunt-electron-installer/package.json...OK
Parsing /usr/src/wireapp/wire-desktop/node_modules/grunt-electron-installer/package.json...OK
Loading "index.js" tasks...OK

  • create-windows-installer

Registering "grunt-git" local Npm module tasks.
Reading /usr/src/wireapp/wire-desktop/node_modules/grunt-git/package.json...OK
Parsing /usr/src/wireapp/wire-desktop/node_modules/grunt-git/package.json...OK
Loading "git.js" tasks...OK

  • gitadd, gitarchive, gitcheckout, gitclean, gitclone, gitcommit, gitdiff, gitfetch, gitlog, gitmerge, gitpull, gitpush, gitrebase, gitreset, gitrevParse, gitrm, gitstash, gittag

Registering "grunt-github-changes" local Npm module tasks.
Reading /usr/src/wireapp/wire-desktop/node_modules/grunt-github-changes/package.json...OK
Parsing /usr/src/wireapp/wire-desktop/node_modules/grunt-github-changes/package.json...OK
Loading "github_changes.js" tasks...OK

  • githubChanges

Registering "grunt-shell" local Npm module tasks.
Reading /usr/src/wireapp/wire-desktop/node_modules/grunt-shell/package.json...OK
Parsing /usr/src/wireapp/wire-desktop/node_modules/grunt-shell/package.json...OK
Loading "shell.js" tasks...OK

  • shell
    Reading package.json...OK
    Parsing package.json...OK
    Reading info.json...OK
    Parsing info.json...OK
    Initializing config...OK
    Loading "Gruntfile.coffee" tasks...OK
  • build-inc, electron, linux, linux-prod, macos, macos-prod, productbuild, release, release-internal, release-prod, update-keys, win, win-prod

Running tasks: linux-prod

Running "linux-prod" task

Running "clean:linux" (clean) task
Verifying property clean.linux exists in config...OK
Files: [no src] -> linux
Options: force=false, no-write=false

0 paths cleaned.

Running "update-keys" task
Options: config="electron/js/config.js"
Reading electron/js/config.js...OK
Writing electron/js/config.js...OK

Running "release-prod" task
Reading electron/package.json...OK
Parsing electron/package.json...OK
Writing electron/package.json...OK
Releases URL points to https://wire-app.wire.com/win/prod/ OK

Running "shell" task

Running "shell:linux64" (shell) task
Verifying property shell.linux64 exists in config...OK
File: [no files]
Options: stdout, stderr, stdin, failOnError, stdinRawMode=false, preferLocal, execOptions={"env":null}
Command: yarn run linux64
Error: Could not find or load main class run
Warning: Command failed: /bin/sh -c yarn run linux64
Error: Could not find or load main class run

Use --force to continue.

Aborted due to warnings.

€ cat /etc/fedora-release
Fedora release 24 (Twenty Four)

Are there some additional packages necessary? Am I doing something wrong? It used to be working previously. Thanks.

Most helpful comment

Looks like you are missing yarn. Install from your distro or npm install -g yarn.

Edit, just tried with the latest source:

$ yarn && grunt linux-prod

yarn install v0.16.1
$ cd electron && yarn
yarn install v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 60.14s.
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
warning [email protected]: The platform "linux" 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...
success Saved lockfile.
$ yarn run rebuild-native-modules
yarn run v0.16.1
$ electron-rebuild -m ./electron/node_modules -f 
Done in 32.42s.
Done in 511.86s.
Running "clean:linux" (clean) task
>> 1 path cleaned.

Running "update-keys" task

Running "release-prod" task
Releases URL points to https://wire-app.wire.com/win/prod/ OK

Running "shell:linux64" (shell) task
yarn run v0.16.1
$ build --linux --x64 
Skip app dependencies rebuild because npmRebuild is set to false
Packaging for platform linux x64 using electron 1.4.4 to wrap/dist/linux-unpacked

Done in 295.60s.

Running "shell:linux32" (shell) task
yarn run v0.16.1
$ build --linux --ia32 
Skip app dependencies rebuild because npmRebuild is set to false
Packaging for platform linux ia32 using electron 1.4.4 to wrap/dist/linux-ia32-unpacked

Done in 265.21s.

Done.

All 2 comments

Looks like you are missing yarn. Install from your distro or npm install -g yarn.

Edit, just tried with the latest source:

$ yarn && grunt linux-prod

yarn install v0.16.1
$ cd electron && yarn
yarn install v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 60.14s.
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
warning [email protected]: The platform "linux" 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...
success Saved lockfile.
$ yarn run rebuild-native-modules
yarn run v0.16.1
$ electron-rebuild -m ./electron/node_modules -f 
Done in 32.42s.
Done in 511.86s.
Running "clean:linux" (clean) task
>> 1 path cleaned.

Running "update-keys" task

Running "release-prod" task
Releases URL points to https://wire-app.wire.com/win/prod/ OK

Running "shell:linux64" (shell) task
yarn run v0.16.1
$ build --linux --x64 
Skip app dependencies rebuild because npmRebuild is set to false
Packaging for platform linux x64 using electron 1.4.4 to wrap/dist/linux-unpacked

Done in 295.60s.

Running "shell:linux32" (shell) task
yarn run v0.16.1
$ build --linux --ia32 
Skip app dependencies rebuild because npmRebuild is set to false
Packaging for platform linux ia32 using electron 1.4.4 to wrap/dist/linux-ia32-unpacked

Done in 265.21s.

Done.

Updated instructions #173

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mohammadrafigh picture mohammadrafigh  Â·  4Comments

xloem picture xloem  Â·  3Comments

cardassian-tailor picture cardassian-tailor  Â·  4Comments

Kasmetski picture Kasmetski  Â·  3Comments

TheAresjej picture TheAresjej  Â·  5Comments