Package Details: mattermost-desktop 4.2.1-2

Git Clone URL: https://aur.archlinux.org/mattermost-desktop.git (read-only)
Package Base: mattermost-desktop
Description: Mattermost Desktop application for Linux (Beta)
Upstream URL: https://github.com/mattermost/desktop
Keywords: chat mattermost messenger networking slack
Licenses: Apache
Submitter: nineinchnick
Maintainer: wget
Last Packager: mtorromeo
Votes: 46
Popularity: 1.917829
First Submitted: 2016-04-02 09:08
Last Updated: 2019-07-17 09:26

Latest Comments

1 2 3 4 5 6 ... Next › Last »

JohnGood commented on 2019-07-03 13:01

Mattermost-desktop stopped working very recently (around a week ago). I cannot figure what caused the issue, downgrading the electron package did not fix it.

It starts but the webpage stay blank and the electron console shows the following error:

index_bundle.js:1084 Uncaught ReferenceError: require is not defined
    at Object.<anonymous> (index_bundle.js:1084)
    at __webpack_require__ (index_bundle.js:20)
    at Object.<anonymous> (index_bundle.js:99)
    at __webpack_require__ (index_bundle.js:20)
    at index_bundle.js:84
    at index_bundle.js:87

index_bundle.js:1084 :

/***/ }),
/* 16 */
/***/ (function(module, exports) {

module.exports = require("url");

/***/ }),

It looks like some node syntax did not get converted correctly.

Edit: Mattermost is calling electron which is now electron5 on ArchLinux. To fix the issue one should simply edit /usr/bin/mattermost-desktop and replace electron by electron4.

/usr/bin/mattermost-desktop :

#!/bin/bash

exec electron4 /usr/lib/mattermost-desktop/app.asar --disable-dev-mode "$@

Which is exactly what the previous comments said, making mine obsolete. :D

mtorromeo commented on 2019-07-03 07:26

Also please use exec electron4 instead of just electron4 in the mattermost-desktop.sh script so that we don't keep a bash process running for nothing.

mtorromeo commented on 2019-07-03 07:22

This should be updated to depend on electron4 and consequently modify /usr/bin/mattermost-desktop to use the electron4 command.

abk commented on 2019-06-20 08:06

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   'run',
1 verbose cli   'package:linux',
1 verbose cli   '--cache',
1 verbose cli   '/var/tmp/pamac-build-meow/mattermost-desktop/src/npm-cache' ]
2 info using npm@6.9.0
3 info using node@v11.15.0
4 verbose run-script [ 'prepackage:linux', 'package:linux', 'postpackage:linux' ]
5 info lifecycle mattermost-desktop@4.2.1~prepackage:linux: mattermost-desktop@4.2.1
6 info lifecycle mattermost-desktop@4.2.1~package:linux: mattermost-desktop@4.2.1
7 verbose lifecycle mattermost-desktop@4.2.1~package:linux: unsafe-perm in lifecycle true
8 verbose lifecycle mattermost-desktop@4.2.1~package:linux: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/tmp/pamac-build-meow/mattermost-desktop/src/desktop-4.2.1/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
9 verbose lifecycle mattermost-desktop@4.2.1~package:linux: CWD: /var/tmp/pamac-build-meow/mattermost-desktop/src/desktop-4.2.1
10 silly lifecycle mattermost-desktop@4.2.1~package:linux: Args: [ '-c',
10 silly lifecycle   'cross-env NODE_ENV=production npm-run-all check-build-config build && build --linux --x64  --config.extraMetadata.name=mattermost-desktop --publish=never' ]
11 silly lifecycle mattermost-desktop@4.2.1~package:linux: Returned: code: 1  signal: null
12 info lifecycle mattermost-desktop@4.2.1~package:linux: Failed to exec package:linux script
13 verbose stack Error: mattermost-desktop@4.2.1 package:linux: `cross-env NODE_ENV=production npm-run-all check-build-config build && build --linux --x64  --config.extraMetadata.name=mattermost-desktop --publish=never`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:193:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:193:13)
13 verbose stack     at maybeClose (internal/child_process.js:999:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5)
14 verbose pkgid mattermost-desktop@4.2.1
15 verbose cwd /var/tmp/pamac-build-meow/mattermost-desktop/src/desktop-4.2.1
16 verbose Linux 5.1.7-1-MANJARO
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "package:linux" "--cache" "/var/tmp/pamac-build-meow/mattermost-desktop/src/npm-cache"
18 verbose node v11.15.0
19 verbose npm  v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error mattermost-desktop@4.2.1 package:linux: `cross-env NODE_ENV=production npm-run-all check-build-config build && build --linux --x64  --config.extraMetadata.name=mattermost-desktop --publish=never`
22 error Exit status 1
23 error Failed at the mattermost-desktop@4.2.1 package:linux script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

wget commented on 2019-05-04 16:07

@ArchangeGabriel Thanks I'll check this out with upstream as well.

ArchangeGabriel commented on 2019-04-30 10:12

Note that electron 5 is in [staging], you should check whether mattermost-desktop works with it (I currently have no mattermost instance, so can’t say).

wget commented on 2019-04-28 22:16

Package updated. Thanks @mtorromeo for pointing me the fix. I realized the app.asar increased of 60 Mio since the last dot release (4.2.0). I'll investigate with upstream. (I'm working with them. 4.3 is around the corner).

mtorromeo commented on 2019-04-16 07:37

This is the patch that needs to be applied to fix the issue with electron 4: https://github.com/mattermost/desktop/commit/40257cf93e153a84a94f888aea3225788fbb9d3a.patch

chrissnell commented on 2019-04-13 01:36

The latest electron upgrade (4.1.1-2) breaks this package:

https://gist.github.com/chrissnell/52c9ec94f473bd60d8a13663c37552ea

Downgrading electron to 3.1.6-1 "fixes" it.

wget commented on 2019-01-04 11:59

@chrissnell and @vith I cannot reproduce on my side: https://gist.github.com/wget/e937dabcf3716ab7869aaede95982e3f

1) Please make sure our system is fully updated (in the logs you provided both node and npm are outdated)

2) Please make sure to use makepkg and avoid using your buggy AUR wrapper/helper

3) Please make sure to remove your npm cache.