From 9250f543bcc50a81386143cd8bf6b6005b8538d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Sun, 11 Feb 2024 06:22:39 +0100 Subject: [PATCH] upgpkg: discord-electron 0.0.42-2: update electron * Patch app.asar to support Electron version 28 --- discord-electron/.SRCINFO | 6 +++--- discord-electron/PKGBUILD | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/discord-electron/.SRCINFO b/discord-electron/.SRCINFO index 3dc1a38..675e335 100644 --- a/discord-electron/.SRCINFO +++ b/discord-electron/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = discord-electron - pkgdesc = Discord using system provided electron (v27) for increased security and performance + pkgdesc = Discord using system provided electron (v28) for increased security and performance pkgver = 0.0.42 - pkgrel = 1 + pkgrel = 2 url = https://discord.com install = discord-electron.install arch = x86_64 @@ -9,7 +9,7 @@ pkgbase = discord-electron makedepends = asar makedepends = curl makedepends = python-html2text - depends = electron27 + depends = electron28 depends = libxss optdepends = libpulse: Pulseaudio support optdepends = libappindicator-gtk3: Systray indicator support diff --git a/discord-electron/PKGBUILD b/discord-electron/PKGBUILD index 3de3c2e..61e554f 100644 --- a/discord-electron/PKGBUILD +++ b/discord-electron/PKGBUILD @@ -14,8 +14,8 @@ pkgname=discord-electron _pkgname=discord pkgver=0.0.42 -pkgrel=1 -_electronver=27 +pkgrel=2 +_electronver=28 _electronname="electron${_electronver}" pkgdesc="Discord using system provided electron (v${_electronver}) for increased security and performance" arch=('x86_64') @@ -62,6 +62,7 @@ build() { # use system electron asar e resources/app.asar resources/app rm resources/app.asar + sed -i -e "/resourcesPath = .*;$/d" -e "s|return resourcesPath|return '/usr/lib/${_pkgname}'|" resources/app/common/paths.js sed -i -e "s|process.resourcesPath|'/usr/lib/${_pkgname}'|" resources/app/app_bootstrap/buildInfo.js sed -i -e "/^const appName/d" -e "/^const exePath/d" -e "/^const exeDir/d" -e "/^const iconPath/d" \ -e "s|^Exec=\${exePath}$|Exec=/usr/bin/${_pkgname}|" \