use electron10 to work around segfaults on electron11 update

This commit is contained in:
John C. Allwein 2021-01-13 11:12:42 -05:00
parent e173420195
commit 430c1ca7b9
2 changed files with 7 additions and 7 deletions

View file

@ -1,12 +1,12 @@
pkgbase = discord_arch_electron pkgbase = discord_arch_electron
pkgdesc = Discord (popular voice + video app) using the system provided electron for increased security and performance pkgdesc = Discord (popular voice + video app) using the system provided electron for increased security and performance
pkgver = 0.0.13 pkgver = 0.0.13
pkgrel = 1 pkgrel = 2
url = https://discordapp.com url = https://discordapp.com
arch = x86_64 arch = x86_64
license = custom license = custom
makedepends = asar makedepends = asar
depends = electron depends = electron10
optdepends = libpulse: Pulseaudio support optdepends = libpulse: Pulseaudio support
optdepends = xdg-utils: Open files optdepends = xdg-utils: Open files
provides = discord provides = discord

View file

@ -4,14 +4,14 @@
pkgname=discord_arch_electron pkgname=discord_arch_electron
_pkgname=discord _pkgname=discord
pkgver=0.0.13 pkgver=0.0.13
pkgrel=1 pkgrel=2
pkgdesc="Discord (popular voice + video app) using the system provided electron for increased security and performance" pkgdesc="Discord (popular voice + video app) using the system provided electron for increased security and performance"
arch=('x86_64') arch=('x86_64')
provides=('discord') provides=('discord')
conflicts=('discord') conflicts=('discord')
url='https://discordapp.com' url='https://discordapp.com'
license=('custom') license=('custom')
depends=('electron') depends=('electron10')
makedepends=('asar') makedepends=('asar')
optdepends=('libpulse: Pulseaudio support' optdepends=('libpulse: Pulseaudio support'
'xdg-utils: Open files') 'xdg-utils: Open files')
@ -45,8 +45,8 @@ package() {
cp -r Discord/resources/* "$pkgdir"/usr/lib/$_pkgname/ cp -r Discord/resources/* "$pkgdir"/usr/lib/$_pkgname/
# Create starter script for discord # Create starter script for discord
echo "#!/bin/sh" >> "$srcdir"/$_pkgname echo "#!/bin/sh" > "$srcdir"/$_pkgname
echo "exec electron /usr/lib/$_pkgname/app.asar \$@" >> "$srcdir"/$_pkgname echo "exec electron10 /usr/lib/$_pkgname/app.asar \$@" >> "$srcdir"/$_pkgname
install -d "$pkgdir"/usr/{bin,share/{pixmaps,applications}} install -d "$pkgdir"/usr/{bin,share/{pixmaps,applications}}
install -Dm 755 $_pkgname "$pkgdir"/usr/bin/$_pkgname install -Dm 755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
@ -57,4 +57,4 @@ package() {
# Licenses # Licenses
install -Dm 644 LICENSE.html "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.html install -Dm 644 LICENSE.html "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.html
install -Dm 644 OSS-LICENSES.html "$pkgdir"/usr/share/licenses/$pkgname/OSS-LICENSES.html install -Dm 644 OSS-LICENSES.html "$pkgdir"/usr/share/licenses/$pkgname/OSS-LICENSES.html
} }