diff --git a/.SRCINFO b/.SRCINFO index e948438..4494317 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,12 +1,12 @@ pkgbase = discord_arch_electron pkgdesc = Discord (popular voice + video app) using the system provided electron for increased security and performance pkgver = 0.0.44 - pkgrel = 1 + pkgrel = 2 url = https://discord.com arch = any license = custom makedepends = asar - depends = electron26 + depends = electron depends = libxss optdepends = libpulse: Pulseaudio support optdepends = xdg-utils: Open files diff --git a/PKGBUILD b/PKGBUILD index 07fc611..3907924 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,10 +4,10 @@ # Contributor: johnnyapol # Based off the discord community repo PKGBUILD by Filipe LaĆ­ns (FFY00) _pkgname=discord -_electron=electron26 +_electron=electron pkgname=${_pkgname}_arch_electron pkgver=0.0.44 -pkgrel=1 +pkgrel=2 pkgdesc="Discord (popular voice + video app) using the system provided electron for increased security and performance" arch=('any') provides=("${_pkgname}") @@ -37,6 +37,7 @@ prepare() { rm Discord/resources/app.asar sed -i "s|process.resourcesPath|'/usr/share/${_pkgname}/resources'|" Discord/resources/app/app_bootstrap/buildInfo.js sed -i "s|exeDir,|'/usr/share/pixmaps',|" Discord/resources/app/app_bootstrap/autoStart/linux.js + sed -i -E "s|resourcesPath = _path.+;|resourcesPath = '/usr/share/${_pkgname}/resources';|" Discord/resources/app/common/paths.js asar p Discord/resources/app Discord/resources/app.asar rm -rf Discord/resources/app }