upgpkg: discord-electron 0.0.48-2: update electron, mod compat
* Update Electron version to 29 * Move asar to resources subfolder for Discord client mod compatibility
This commit is contained in:
parent
4814f84b92
commit
6e3a7a3ca5
3 changed files with 10 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = discord-electron
|
pkgbase = discord-electron
|
||||||
pkgdesc = Discord using system provided electron (v28) for increased security and performance
|
pkgdesc = Discord using system provided electron (v29) for increased security and performance
|
||||||
pkgver = 0.0.48
|
pkgver = 0.0.48
|
||||||
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
|
||||||
|
@ -9,7 +9,7 @@ pkgbase = discord-electron
|
||||||
makedepends = asar
|
makedepends = asar
|
||||||
makedepends = curl
|
makedepends = curl
|
||||||
makedepends = python-html2text
|
makedepends = python-html2text
|
||||||
depends = electron28
|
depends = electron29
|
||||||
depends = libxss
|
depends = libxss
|
||||||
optdepends = libpulse: Pulseaudio support
|
optdepends = libpulse: Pulseaudio support
|
||||||
optdepends = libappindicator-gtk3: Systray indicator support
|
optdepends = libappindicator-gtk3: Systray indicator support
|
||||||
|
@ -21,6 +21,6 @@ pkgbase = discord-electron
|
||||||
source = https://dl.discordapp.net/apps/linux/0.0.48/discord-0.0.48.tar.gz
|
source = https://dl.discordapp.net/apps/linux/0.0.48/discord-0.0.48.tar.gz
|
||||||
source = discord-launcher.sh
|
source = discord-launcher.sh
|
||||||
sha512sums = 3cffb469283de46a234f09fc42bf9963d4497ae28f71637db1230d5f8531c0d9fe00ceb6002e5f65f085a1a9511fd3ac8dd48e23431e190555d6cf8e62519f2b
|
sha512sums = 3cffb469283de46a234f09fc42bf9963d4497ae28f71637db1230d5f8531c0d9fe00ceb6002e5f65f085a1a9511fd3ac8dd48e23431e190555d6cf8e62519f2b
|
||||||
sha512sums = ceaeb357a84df0695fe65867f81d2fa35a65a6f47f47a29022e09fa15cc816b3e250f63eee1025388f51665e6bc39262de7cb7a137f25caf1d922bbacd217566
|
sha512sums = 9d00f9d2e05c2ba31c930c066f247954700bb0f96f2fc605e61c3973d7dacf962bf372659b71e05e5d8d4e152cc884bf12ec1fb5ecbfc4da55d22ab2591c4c40
|
||||||
|
|
||||||
pkgname = discord-electron
|
pkgname = discord-electron
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
pkgname=discord-electron
|
pkgname=discord-electron
|
||||||
_pkgname=discord
|
_pkgname=discord
|
||||||
pkgver=0.0.48
|
pkgver=0.0.48
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
_electronver=28
|
_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"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
@ -36,7 +36,7 @@ optdepends=(
|
||||||
source=("https://dl.discordapp.net/apps/linux/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
|
source=("https://dl.discordapp.net/apps/linux/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
|
||||||
'discord-launcher.sh')
|
'discord-launcher.sh')
|
||||||
sha512sums=('3cffb469283de46a234f09fc42bf9963d4497ae28f71637db1230d5f8531c0d9fe00ceb6002e5f65f085a1a9511fd3ac8dd48e23431e190555d6cf8e62519f2b'
|
sha512sums=('3cffb469283de46a234f09fc42bf9963d4497ae28f71637db1230d5f8531c0d9fe00ceb6002e5f65f085a1a9511fd3ac8dd48e23431e190555d6cf8e62519f2b'
|
||||||
'ceaeb357a84df0695fe65867f81d2fa35a65a6f47f47a29022e09fa15cc816b3e250f63eee1025388f51665e6bc39262de7cb7a137f25caf1d922bbacd217566')
|
'9d00f9d2e05c2ba31c930c066f247954700bb0f96f2fc605e61c3973d7dacf962bf372659b71e05e5d8d4e152cc884bf12ec1fb5ecbfc4da55d22ab2591c4c40')
|
||||||
|
|
||||||
_krisp_b2sum='5f72dcddf45a680d16a49961d1756ac26ca555a94771ff5ece43c66783f9f311948e070f57d60c562675d993b69fc4f3375dd22e2f0d1692c1094258d71bb162'
|
_krisp_b2sum='5f72dcddf45a680d16a49961d1756ac26ca555a94771ff5ece43c66783f9f311948e070f57d60c562675d993b69fc4f3375dd22e2f0d1692c1094258d71bb162'
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ build() {
|
||||||
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/app/common/paths.js
|
||||||
sed -i -e "s|process.resourcesPath|'/usr/lib/${_pkgname}'|" 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}|" \
|
||||||
-e "s|^Name=\${appName}$|Name=${_pkgname^}|" \
|
-e "s|^Name=\${appName}$|Name=${_pkgname^}|" \
|
||||||
|
@ -79,7 +79,7 @@ package() {
|
||||||
install -d "${pkgdir}"/usr/share/{pixmaps,applications,licenses/$_pkgname}
|
install -d "${pkgdir}"/usr/share/{pixmaps,applications,licenses/$_pkgname}
|
||||||
|
|
||||||
# copy relevant data
|
# copy relevant data
|
||||||
cp -r ${_pkgname^}/resources/* "${pkgdir}"/usr/lib/$_pkgname/
|
cp -r ${_pkgname^}/resources "${pkgdir}"/usr/lib/$_pkgname/
|
||||||
cp ${_pkgname^}/$_pkgname.png \
|
cp ${_pkgname^}/$_pkgname.png \
|
||||||
"${pkgdir}"/usr/share/pixmaps/$_pkgname.png
|
"${pkgdir}"/usr/share/pixmaps/$_pkgname.png
|
||||||
cp ${_pkgname^}/$_pkgname.desktop \
|
cp ${_pkgname^}/$_pkgname.desktop \
|
||||||
|
|
|
@ -37,6 +37,6 @@ unset flags_file krisp_bin krisp_b2
|
||||||
|
|
||||||
|
|
||||||
exec /usr/lib/@ELECTRON@/electron \
|
exec /usr/lib/@ELECTRON@/electron \
|
||||||
/usr/lib/@PKGNAME@/app.asar \
|
/usr/lib/@PKGNAME@/resources/app.asar \
|
||||||
--ozone-platform-hint=auto \
|
--ozone-platform-hint=auto \
|
||||||
"${flags[@]}" "$@"
|
"${flags[@]}" "$@"
|
||||||
|
|
Loading…
Reference in a new issue