Compare commits

..

No commits in common. "6579e566d8ab3ddc3e7a1582ceb8bac2a53b88b1" and "d94bd89f072ec3cee30870cee146813ad4c80e0e" have entirely different histories.

3 changed files with 6 additions and 6 deletions

View file

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

4
.gitignore vendored Normal file
View file

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

View file

@ -12,16 +12,14 @@
pkgname=discord-electron-bin pkgname=discord-electron-bin
_pkgname=discord _pkgname=discord
_electron=13 _electron=13
#_electron=19
pkgver=0.0.21 pkgver=0.0.21
pkgrel=2 pkgrel=1
pkgdesc="Discord using system provided electron (v${_electron}) for increased security and performance" pkgdesc="Discord using system provided electron (v${_electron}) for increased security and performance"
arch=('x86_64') arch=('x86_64')
provides=("${_pkgname}") provides=("${_pkgname}")
conflicts=("${_pkgname}") conflicts=("${_pkgname}")
url='https://discord.com' url='https://discord.com'
license=('custom') license=('custom')
options=('!strip')
depends=("electron${_electron}") depends=("electron${_electron}")
makedepends=('asar' 'curl' 'python-html2text') makedepends=('asar' 'curl' 'python-html2text')
optdepends=( optdepends=(
@ -77,7 +75,6 @@ EOF
rm $_tarname/resources/app.asar rm $_tarname/resources/app.asar
sed -i "s|process.resourcesPath|'/usr/lib/${_pkgname}'|" $_tarname/resources/app/app_bootstrap/buildInfo.js 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|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 '**' asar p $_tarname/resources/app $_tarname/resources/app.asar --unpack-dir '**'
rm -rf $_tarname/resources/app rm -rf $_tarname/resources/app
} }