Compare commits

...

3 commits

Author SHA1 Message Date
6579e566d8 upgpkg: discord-electron-bin 0.0.21-2
Don't strip package to not break Krisp noise supression. FS#76334
2022-11-17 22:25:47 +01:00
2246c81d34 Remove obsolete install and gitignore files 2022-10-23 11:18:17 +02:00
c269a01366 discord-electron-bin: Set correct module path
This change allows the use of vastly newer Electron versions
but this makes Discord still crash when viewing a video feed
2022-10-23 10:31:02 +02:00
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
pkgbase = discord-electron-bin
pkgdesc = Discord using system provided electron (v13) for increased security and performance
pkgver = 0.0.21
pkgrel = 1
pkgrel = 2
url = https://discord.com
arch = x86_64
license = custom
@ -13,6 +13,7 @@ pkgbase = discord-electron-bin
optdepends = xdg-utils: Open files
provides = discord
conflicts = discord
options = !strip
source = https://dl.discordapp.net/apps/linux/0.0.21/discord-0.0.21.tar.gz
sha512sums = 149ae5b8b7d92549e12eca52e45d3f5761ef022ae321cf33fadc3b56c4cee0616a5166380faea038256213713a7aa90e1befc4caa3e6a4de8e15c1cb1d8f925d

4
.gitignore vendored
View file

@ -1,4 +0,0 @@
pkg/
src/
*.tar.*
*.pkg.*

View file

@ -12,14 +12,16 @@
pkgname=discord-electron-bin
_pkgname=discord
_electron=13
#_electron=19
pkgver=0.0.21
pkgrel=1
pkgrel=2
pkgdesc="Discord using system provided electron (v${_electron}) for increased security and performance"
arch=('x86_64')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
url='https://discord.com'
license=('custom')
options=('!strip')
depends=("electron${_electron}")
makedepends=('asar' 'curl' 'python-html2text')
optdepends=(
@ -75,6 +77,7 @@ EOF
rm $_tarname/resources/app.asar
sed -i "s|process.resourcesPath|'/usr/lib/${_pkgname}'|" $_tarname/resources/app/app_bootstrap/buildInfo.js
sed -i "s|exeDir,|'/usr/share/pixmaps',|" $_tarname/resources/app/app_bootstrap/autoStart/linux.js
sed -i "s#^module\.paths.*;#module.paths = [(process.env.XDG_CONFIG_HOME || (process.env.HOME + \"/.config\")) + \"/discord/$pkgver/modules\"];#" Discord/resources/app/app_bootstrap/requireNative.js
asar p $_tarname/resources/app $_tarname/resources/app.asar --unpack-dir '**'
rm -rf $_tarname/resources/app
}