upgpkg: discord-electron 0.0.49-2: fix error on launch

* Fix mistake when I moved asar into resources subfolder
This commit is contained in:
Manuel 2024-04-10 19:50:11 +02:00
parent cf8acd973c
commit 093355368b
Signed by: Manuel
GPG key ID: 4085037435E1F07A
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = discord-electron pkgbase = discord-electron
pkgdesc = Discord using system provided electron (v29) for increased security and performance pkgdesc = Discord using system provided electron (v29) for increased security and performance
pkgver = 0.0.49 pkgver = 0.0.49
pkgrel = 1 pkgrel = 2
url = https://discord.com url = https://discord.com
install = discord-electron.install install = discord-electron.install
arch = x86_64 arch = x86_64

View file

@ -14,7 +14,7 @@
pkgname=discord-electron pkgname=discord-electron
_pkgname=discord _pkgname=discord
pkgver=0.0.49 pkgver=0.0.49
pkgrel=1 pkgrel=2
_electronver=29 _electronver=29
_electronname="electron${_electronver}" _electronname="electron${_electronver}"
pkgdesc="Discord using system provided electron (v${_electronver}) for increased security and performance" pkgdesc="Discord using system provided electron (v${_electronver}) for increased security and performance"
@ -62,7 +62,7 @@ build() {
# use system electron # use system electron
asar e resources/app.asar resources/app asar e resources/app.asar resources/app
rm resources/app.asar 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 "/resourcesPath = .*;$/d" -e "s|return resourcesPath|return '/usr/lib/${_pkgname}/resources'|" resources/app/common/paths.js
sed -i -e "s|process.resourcesPath|'/usr/lib/${_pkgname}/resources'|" resources/app/app_bootstrap/buildInfo.js sed -i -e "s|process.resourcesPath|'/usr/lib/${_pkgname}/resources'|" resources/app/app_bootstrap/buildInfo.js
sed -i -e "/^const appName/d" -e "/^const exePath/d" -e "/^const exeDir/d" -e "/^const iconPath/d" \ 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}|" \ -e "s|^Exec=\${exePath}$|Exec=/usr/bin/${_pkgname}|" \