Package Details: mattermost-desktop 4.6.2-1

Git Clone URL: https://aur.archlinux.org/mattermost-desktop.git (read-only, click to copy)
Package Base: mattermost-desktop
Description: Mattermost Desktop application for Linux
Upstream URL: https://github.com/mattermost/desktop
Keywords: chat mattermost messenger networking slack
Licenses: Apache
Submitter: nineinchnick
Maintainer: caleb (wget)
Last Packager: caleb
Votes: 56
Popularity: 0.016946
First Submitted: 2016-04-02 09:08
Last Updated: 2021-01-25 17:25

Dependencies (4)

Required by (0)

Sources (3)

Latest Comments

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

jonathon commented on 2021-03-18 17:27

It might be worth bumping this to the commit [MM-23067] Browser View (technically 4.7.0pre) as it introduces support for Electron 11 (i.e. it works fine with electron from the repo). I've tested locally and it works absolutely fine.

For example:

index 8bac9df..51c1dc7 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -6,23 +6,25 @@

 pkgname=mattermost-desktop
-pkgver=4.6.2
+pkgver=4.7.0pre
 pkgrel=1
 pkgdesc='Mattermost Desktop application for Linux'
 arch=('x86_64' 'i686')
 url="https://github.com/${pkgname/-//}"
 license=('Apache')
-depends=('electron7')
+depends=('electron')
 makedepends=('git' 'jq' 'npm')
 #optdepends=('hunspell: spell checking')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+#source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+_commit=e76e0dc0a18dde17d1c98714256c9a1ced02a5a4
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$_commit.tar.gz"
         "$pkgname.sh"
         "${pkgname/-/.}")
-sha256sums=('620ff64ec2c04bfe1005c25988a5d4cb20e376bc9dca9e3ce3e11dbd59ad0b47'
-            '0f18f87764465f1fc5a9fdfb6ef2834af4623c13bc95fce58da6cb0d8d39a75e'
+sha256sums=('8657fa6ff8c0c576bda2cbfee78fa05d761b9f194788df09f14e724ee62c541c'
+            '2b42741faf1938d0eb0418b1e6ba9104fe5ed5c4368bdf62908c84089074164d'
             'e628268d3393aac0d5b7237c6b8818d2e362c373f99874a19171bf96a25e4ffa')

 prepare() {
-    cd "desktop-$pkgver"
+    cd "desktop-$_commit"

     # Depending on the architecture, in order to accelerate the build process,
     # removes the compilation of ia32 or x64 build.
@@ -39,7 +41,7 @@ prepare() {
     mv electron-builder-new.json electron-builder.json

     # Prepend to system electron in order to avoid an unneeded download.
-    local electronDist="/usr/lib/electron7"
+    local electronDist="/usr/lib/electron"
     local electronVersion="$(<"$electronDist"/version)"
     jq '{"electronDist": $electronDist, "electronVersion": $electronVersion} + .' \
         --arg electronDist "$electronDist" \
@@ -69,7 +71,7 @@ prepare() {
 }

 package() {
-    cd "desktop-$pkgver"
+    cd "desktop-$_commit"
     npm run package:linux --cache "$srcdir/npm-cache"

     install -d "$pkgdir/usr/lib"
diff --git i/mattermost-desktop.sh w/mattermost-desktop.sh
index 32009a8..46ff187 100644
--- i/mattermost-desktop.sh
+++ w/mattermost-desktop.sh
@@ -1,2 +1,2 @@
 #!/bin/sh
-exec electron7 /usr/lib/mattermost-desktop/app.asar --disable-dev-mode "$@"
+exec electron /usr/lib/mattermost-desktop/app.asar --disable-dev-mode "$@"

jdsnape commented on 2021-03-15 10:03

I think electron7 has now been removed from the community repo, so this package now fails to install:

makepkg -si
==> Making package: mattermost-desktop 4.6.2-1 (Mon 15 Mar 2021 10:00:47 GMT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: electron7
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> electron7
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

I guess this is the same issue as others have had below?

jonathon commented on 2021-03-09 01:59

Just for info, this will build against electron8 and electron9 which will remove the dep on the EOL electron7. With 8 it seems stable, with 9 it will occasionally crash on certain menu operations but otherwise mostly works. It does not work well with 6 (missing menus, ...).

Archange commented on 2021-01-12 13:32

@obi12341 No, that’s a pikaur issue if this AUR helper is unable to find electron7-bin as filling the dependency on electron7.

@caleb said, some people might still have electron7 from [community] and this would break it for them, and anyone could push an electron7 source package.

So the mattermost-desktop PKGBUILD is technically correct, the issue is AUR helper not able to find packages that provides another one.

obi12341 commented on 2021-01-12 10:53

@caleb you are doing it wrong imho. There is no package electron7 anymore in AUR or [community]. Still specifying a dependency which is not around is breaking the UX to install the package. If the user is using pikaur -S mattermost-desktop (pikaur is widley used, >500 stars on github) it fails and for a lot of people out there it is just pain in the ass to get to know why.

Log: $ pikaur -S mattermost-desktop Reading repository package databases... Reading local package database... Resolving AUR dependencies... :: error: Can't resolve dependencies for AUR package 'mattermost-desktop': :: error: Dependencies missing for mattermost-desktop :: warning: Following package cannot be found in AUR: electron7
:: Try recovering? [e] edit PKGBUILD [s] skip this package [A] abort

A

caleb commented on 2021-01-08 08:44

@LMBernardo Any AUR helper worth its salt will already handle this. The electron7-bin package provides electron7, which is the proper way of handling this and helpers that use the API are able to discover them. Meanwhile even though there is currently no source build package posted if someone were to push an electron7 package (or some other variant, such as a Git build or fork) this method of specifying dependencies would allow people to use that package as an alternative to provide Electron.

Another reason is because some people may have kept the electron7 package from [community] around or have base systems that are not updated. This arrangement would allow them to use what they have most flexibly.

LMBernardo commented on 2021-01-08 02:31

Is there any particular reason for using 'electron7' as a dependency instead of 'electron7-bin'? I know AUR helpers are technically unsupported but it would be nice to be able to install without needing to manually install electron7-bin separately.

caleb commented on 2021-01-07 13:07

@test0 Did you have electron7 installed at the time you built the package? This still works for me (still using electron7-bin for that dependency). I'll update this to a newer Electron as soon as upstream supports it, but at the moment this is the configuration that is expected to work (and does for me).

test0 commented on 2020-12-23 18:30

When opening mattermost-dekstop all I get is a white blank screen. I tried to also install electron7-bin but it didn't work. What can I do?

nordic-devops commented on 2020-12-17 11:08

@dzusan thank you! That fixed it. :)