upgpkg: discord 0.0.94-2: Upgrade again to electron36 with workaround for GTK bug
Until the bug is fixed upstream, we force Discord to run on gtk3, as per the recommendation in the upstream issue: https://github.com/electron/electron/issues/46538#issuecomment-2790356082
This commit is contained in:
parent
e65a046648
commit
6d5437d3af
3 changed files with 8 additions and 7 deletions
8
.SRCINFO
8
.SRCINFO
|
@ -1,7 +1,7 @@
|
|||
pkgbase = discord_arch_electron
|
||||
pkgdesc = Discord using system provided electron35 for increased security and performance
|
||||
pkgdesc = Discord using system provided electron for increased security and performance
|
||||
pkgver = 0.0.94
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
epoch = 1
|
||||
url = https://discord.com
|
||||
install = discord_arch_electron.install
|
||||
|
@ -9,7 +9,7 @@ pkgbase = discord_arch_electron
|
|||
license = custom
|
||||
makedepends = asar
|
||||
makedepends = curl
|
||||
depends = electron35
|
||||
depends = electron
|
||||
depends = libxss
|
||||
optdepends = libpulse: Pulseaudio support
|
||||
optdepends = libappindicator-gtk3: Systray indicator support
|
||||
|
@ -23,7 +23,7 @@ pkgbase = discord_arch_electron
|
|||
source = discord-launcher.sh
|
||||
source = krisp-patcher.py
|
||||
sha512sums = de51af7e74a0e50f826719b37bd11dfdc82792266d8284fba050019a5993474149631a1a5a8fa4e061741e613ae2fd78ab6b50f4768d993281ee132fa60c0ec5
|
||||
sha512sums = e11a60419c6ee5944aefc1ac16a5b496518fae626627d37a5bf636975bd21b1d9b6118ec3f44e7f4283befe5fa14737ad28dc38d975967789247ac0e66c352f3
|
||||
sha512sums = f15a31adefac63914cf26a2404f706e7ccaa1b08a150eb3b20d8b21612f1a4be7d851f0150ea01d0425ce4a260cc3ae2483453f42b42a00e79123433ce43f722
|
||||
sha512sums = 42cef68c1f7d574b4fbe859a4dc616e8994c7d16f62bcae3ff1f88e1edc58ac37b39c238d7defa9c97ceda417fcd6224cf0a0fd2608b8d18d0877e3c1befa59c
|
||||
|
||||
pkgname = discord_arch_electron
|
||||
|
|
6
PKGBUILD
6
PKGBUILD
|
@ -7,10 +7,10 @@
|
|||
# Based off the discord community repo PKGBUILD by Filipe Laíns (FFY00) <lains@archlinux.org>
|
||||
|
||||
_pkgname=discord
|
||||
_electron=electron35
|
||||
_electron=electron
|
||||
pkgname=${_pkgname}_arch_electron
|
||||
pkgver=0.0.94
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
epoch=1
|
||||
pkgdesc="Discord using system provided ${_electron} for increased security and performance"
|
||||
arch=('any')
|
||||
|
@ -31,7 +31,7 @@ source=("https://dl.discordapp.net/apps/linux/${pkgver}/${_pkgname}-${pkgver}.ta
|
|||
'discord-launcher.sh'
|
||||
'krisp-patcher.py') # original: https://github.com/sersorrel/sys/blob/main/hm/discord/krisp-patcher.py
|
||||
sha512sums=('de51af7e74a0e50f826719b37bd11dfdc82792266d8284fba050019a5993474149631a1a5a8fa4e061741e613ae2fd78ab6b50f4768d993281ee132fa60c0ec5'
|
||||
'e11a60419c6ee5944aefc1ac16a5b496518fae626627d37a5bf636975bd21b1d9b6118ec3f44e7f4283befe5fa14737ad28dc38d975967789247ac0e66c352f3'
|
||||
'f15a31adefac63914cf26a2404f706e7ccaa1b08a150eb3b20d8b21612f1a4be7d851f0150ea01d0425ce4a260cc3ae2483453f42b42a00e79123433ce43f722'
|
||||
'42cef68c1f7d574b4fbe859a4dc616e8994c7d16f62bcae3ff1f88e1edc58ac37b39c238d7defa9c97ceda417fcd6224cf0a0fd2608b8d18d0877e3c1befa59c')
|
||||
|
||||
prepare() {
|
||||
|
|
|
@ -35,4 +35,5 @@ done
|
|||
exec /usr/bin/${electron} \
|
||||
/usr/share/${name}/resources/app.asar \
|
||||
--ozone-platform-hint=auto \
|
||||
--gtk-version=3 \ # Workaround for bug in electron36: https://github.com/electron/electron/issues/46538#issuecomment-2790356082
|
||||
"${flags[@]}" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue