Compare commits
3 commits
d94bd89f07
...
6579e566d8
Author | SHA1 | Date | |
---|---|---|---|
6579e566d8 | |||
2246c81d34 | |||
c269a01366 |
3 changed files with 6 additions and 6 deletions
3
.SRCINFO
3
.SRCINFO
|
@ -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 = 1
|
pkgrel = 2
|
||||||
url = https://discord.com
|
url = https://discord.com
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = custom
|
license = custom
|
||||||
|
@ -13,6 +13,7 @@ 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
4
.gitignore
vendored
|
@ -1,4 +0,0 @@
|
||||||
pkg/
|
|
||||||
src/
|
|
||||||
*.tar.*
|
|
||||||
*.pkg.*
|
|
5
PKGBUILD
5
PKGBUILD
|
@ -12,14 +12,16 @@
|
||||||
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=1
|
pkgrel=2
|
||||||
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=(
|
||||||
|
@ -75,6 +77,7 @@ 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue