Package Details: mattermost-desktop 4.6.1-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.28
First Submitted: 2016-04-02 09:08
Last Updated: 2020-10-26 19:35

Dependencies (4)

Required by (0)

Sources (3)

Latest Comments

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

greyltc commented on 2020-11-17 15:07

I asked upstream about using a newer electron: https://github.com/mattermost/desktop/issues/1416 "it is planned to upgrade in a future release"

caleb commented on 2020-11-13 10:04

@Carabas The upstream project still officially uses Electron 7. My testing shows it mostly works in the current stable 10.x, but not 100%. Given not some functionality seems to be broken I can't really make that the default. Currently the recommended solution is to install electron7-bin which will provide electron7 and let you build this the way upstream expects it. I would encourage putting pressure on the upstream project to update since they are now 3 major versions behind which makes distro packaging hard.

Carabas commented on 2020-10-24 07:55

I had to replace the two 'electron7' occurrences by 'electron' to compile it.

caleb commented on 2020-09-25 13:19

@Nullrequest Electron 7 was removed from [community], you must now install it from the AUR. See the electron7-bin package which provides this. Feel free to post a source package for electron7 too, but this package does not currently need updating. Provide the dependency and it will still work as currently written.

Nullrequest commented on 2020-09-16 04:45

electron7 no longer exists dependencies need to be update

Severus commented on 2020-08-26 16:40

I suggest using yarn and build as linux-unpacked with full mattermost-desktop ELF from releas directory, then we dont care about electron version anymore. Yarn also uses latest electron version from 7 series, and latest electron builder. here is my working PKGFILE

# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: William Gathoye <william + aur at gathoye dot be>
# Contributor: Aleksandar Trifunović <akstrfn at gmail dot com>
# Contributor: Jan Was <janek dot jan at gmail dot com>
# Contributor: Bruno Pagani <archange at archlinux dot org>

pkgname=mattermost-desktop
pkgver=4.5.3
pkgrel=2
pkgdesc='Mattermost Desktop application for Linux'
arch=('x86_64' 'i686')
url="https://github.com/${pkgname/-//}"
license=('Apache')
depends=('electron')
makedepends=('jq' 'yarn')
#optdepends=('hunspell: spell checking')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
        "${pkgname/-/.}")
sha256sums=('84c2deade6e17ef655408824e76f7630d77452ac02f84407cd6e0d4ee618c5de'
            'e628268d3393aac0d5b7237c6b8818d2e362c373f99874a19171bf96a25e4ffa')

prepare() {
    cd "desktop-$pkgver"
    # Depending on the architecture, in order to accelerate the build process,
    # removes the compilation of ia32 or x64 build.
    if [[ "$CARCH" == x86_64 ]];then
        sed -i 's/--ia32//g' package.json
    else
        sed -i 's/--x64//g' package.json
    fi

    # Do not build tar.gz, nor .deb or appimages. This reduces build time.
    jq '.linux .target |= ["dir"]' \
        electron-builder.json > electron-builder-new.json
    # jq cannot output to the same file it get input from.
    mv electron-builder-new.json electron-builder.json

    # Mattermost Desktop is using simple-spellchecker which prevents to bind on
    # the system Arch Linux hunspell dictionnaries. This is due to the fact
    # simple-spellchecker comes with its own set of dictionnaries. They differ
    # from the hunspell dictionnaries in the sense of, hunspell's dictionnaries
    # have additional pieces of info attributed to each line.
    # e.g. in /usr/share/hunspell/fr_FR.dic, "ordinateur" (computer in English)
    # ordinateur/S*() po:nom is:mas
    # simple-spellcheck expects a line with:
    # ordinateur
    # instead
    #
    # Asking upstream to switch to electron-spellchecker will fix the issue.
    # https://github.com/electron-userland/electron-spellchecker

    # Install dependencies should be in prepare(), that way we don't need an
    # internet connection during build().
    # We don't need to run "npm run build" because that target is run by "npm
    # run package:linux" any way.
    yarn install 
}

package() {
    cd "desktop-$pkgver"
    yarn package:linux 

    install -d "$pkgdir/usr/"{lib,bin}
    # The wildcard in the unpackaged is needed for i686 or ARM platforms.
    cp -a release/linux*unpacked "$pkgdir/usr/lib/$pkgname"
    ln -s "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/"
    install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
    install -Dm644 resources/linux/icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"

    cd "$srcdir"
    install -Dm644 "${pkgname/-/.}" -t "$pkgdir/usr/share/applications/"
}

Severus commented on 2020-08-26 15:29

I created issue and the answer here. https://github.com/mattermost/desktop/issues/1364#issuecomment-680950352

Severus commented on 2020-08-26 14:18

My fault, it still crashes when I click File -> Settings Error: Failed to serialize arguments at WebContents._.send (electron/js2c/browser_init.js:173:2149) at Menu.handleCloseAppMenu (/usr/lib/mattermost-desktop/app.asar/main_bundle.js:1063:26) at Menu.emit (events.js:223:5)

Severus commented on 2020-08-26 14:13

New version is compatible with electron 9. I rebuilt with latest electron and it worked fine.

noraj commented on 2020-07-22 13:19

@KolLolZol There were new updates since, it doesn't occure to me anymore.