Compare commits
No commits in common. "a4bb40833ebf395fba2b76c317ba2fcfcb515bea" and "3a912394e8fb2ac2ecba4f710467da465a7bf088" have entirely different histories.
a4bb40833e
...
3a912394e8
3 changed files with 15 additions and 15 deletions
12
.SRCINFO
12
.SRCINFO
|
@ -1,6 +1,6 @@
|
||||||
pkgbase = discord-electron-openasar
|
pkgbase = discord-electron-openasar
|
||||||
pkgdesc = Discord packaged with OpenAsar using system provided electron (v29) for increased security and performance
|
pkgdesc = Discord packaged with OpenAsar using system provided electron (v28) for increased security and performance
|
||||||
pkgver = 0.0.49+827
|
pkgver = 0.0.48+827
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://discord.com
|
url = https://discord.com
|
||||||
install = discord-electron-openasar.install
|
install = discord-electron-openasar.install
|
||||||
|
@ -11,7 +11,7 @@ pkgbase = discord-electron-openasar
|
||||||
makedepends = nodejs
|
makedepends = nodejs
|
||||||
makedepends = curl
|
makedepends = curl
|
||||||
makedepends = python-html2text
|
makedepends = python-html2text
|
||||||
depends = electron29
|
depends = electron28
|
||||||
depends = libxss
|
depends = libxss
|
||||||
depends = unzip
|
depends = unzip
|
||||||
optdepends = libpulse: Pulseaudio support
|
optdepends = libpulse: Pulseaudio support
|
||||||
|
@ -21,11 +21,11 @@ pkgbase = discord-electron-openasar
|
||||||
provides = discord
|
provides = discord
|
||||||
conflicts = discord
|
conflicts = discord
|
||||||
options = !strip
|
options = !strip
|
||||||
source = https://dl.discordapp.net/apps/linux/0.0.49/discord-0.0.49.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
|
||||||
source = git+https://github.com/goosemod/openasar.git#commit=4f264d860a5a6a32e1862ce26178b9cf6402335d
|
source = git+https://github.com/goosemod/openasar.git#commit=4f264d860a5a6a32e1862ce26178b9cf6402335d
|
||||||
sha512sums = b8b1509c31e4c237255d678bbc3e8c4d0cd8b3731050b732e149399f8dda8abb12a46ad9ea3e718016f430ebfe17f88629d0964fe1266efe8b4cd20a2f9abbce
|
sha512sums = 3cffb469283de46a234f09fc42bf9963d4497ae28f71637db1230d5f8531c0d9fe00ceb6002e5f65f085a1a9511fd3ac8dd48e23431e190555d6cf8e62519f2b
|
||||||
sha512sums = 9d00f9d2e05c2ba31c930c066f247954700bb0f96f2fc605e61c3973d7dacf962bf372659b71e05e5d8d4e152cc884bf12ec1fb5ecbfc4da55d22ab2591c4c40
|
sha512sums = ceaeb357a84df0695fe65867f81d2fa35a65a6f47f47a29022e09fa15cc816b3e250f63eee1025388f51665e6bc39262de7cb7a137f25caf1d922bbacd217566
|
||||||
sha512sums = 055bbe5fbc63a715ab8357db8aabacad282e3d176b48e322d7133a5887291577687456bbfaf7b832d19f13b1a5a373e2c0f6f82664887509feb3c193ee4f1849
|
sha512sums = 055bbe5fbc63a715ab8357db8aabacad282e3d176b48e322d7133a5887291577687456bbfaf7b832d19f13b1a5a373e2c0f6f82664887509feb3c193ee4f1849
|
||||||
|
|
||||||
pkgname = discord-electron-openasar
|
pkgname = discord-electron-openasar
|
||||||
|
|
16
PKGBUILD
16
PKGBUILD
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
pkgname=discord-electron-openasar
|
pkgname=discord-electron-openasar
|
||||||
_pkgname=discord
|
_pkgname=discord
|
||||||
pkgver=0.0.49+827
|
pkgver=0.0.48+827
|
||||||
_pkgver=${pkgver%%+*}
|
_pkgver=${pkgver%%+*}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
_electronver=29
|
_electronver=28
|
||||||
_electronname="electron${_electronver}"
|
_electronname="electron${_electronver}"
|
||||||
pkgdesc="Discord packaged with OpenAsar using system provided electron (v${_electronver}) for increased security and performance"
|
pkgdesc="Discord packaged with OpenAsar using system provided electron (v${_electronver}) for increased security and performance"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
@ -30,11 +30,11 @@ 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'
|
||||||
"git+https://github.com/goosemod/openasar.git#commit=4f264d860a5a6a32e1862ce26178b9cf6402335d")
|
"git+https://github.com/goosemod/openasar.git#commit=4f264d860a5a6a32e1862ce26178b9cf6402335d")
|
||||||
sha512sums=('b8b1509c31e4c237255d678bbc3e8c4d0cd8b3731050b732e149399f8dda8abb12a46ad9ea3e718016f430ebfe17f88629d0964fe1266efe8b4cd20a2f9abbce'
|
sha512sums=('3cffb469283de46a234f09fc42bf9963d4497ae28f71637db1230d5f8531c0d9fe00ceb6002e5f65f085a1a9511fd3ac8dd48e23431e190555d6cf8e62519f2b'
|
||||||
'9d00f9d2e05c2ba31c930c066f247954700bb0f96f2fc605e61c3973d7dacf962bf372659b71e05e5d8d4e152cc884bf12ec1fb5ecbfc4da55d22ab2591c4c40'
|
'ceaeb357a84df0695fe65867f81d2fa35a65a6f47f47a29022e09fa15cc816b3e250f63eee1025388f51665e6bc39262de7cb7a137f25caf1d922bbacd217566'
|
||||||
'055bbe5fbc63a715ab8357db8aabacad282e3d176b48e322d7133a5887291577687456bbfaf7b832d19f13b1a5a373e2c0f6f82664887509feb3c193ee4f1849')
|
'055bbe5fbc63a715ab8357db8aabacad282e3d176b48e322d7133a5887291577687456bbfaf7b832d19f13b1a5a373e2c0f6f82664887509feb3c193ee4f1849')
|
||||||
|
|
||||||
_krisp_b2sum='f0452620769e3a53c25b4cea257fb1a3d7be4740e77d583b6998f162dae1db1c63eabd7989adecb5b423421a6373b0ef164e23a7cff0edd8a5df3108bce938f4'
|
_krisp_b2sum='5f72dcddf45a680d16a49961d1756ac26ca555a94771ff5ece43c66783f9f311948e070f57d60c562675d993b69fc4f3375dd22e2f0d1692c1094258d71bb162'
|
||||||
|
|
||||||
# just in case I get the version wrong
|
# just in case I get the version wrong
|
||||||
pkgver() {
|
pkgver() {
|
||||||
|
@ -64,7 +64,7 @@ build() {
|
||||||
# pack openasar
|
# pack openasar
|
||||||
sed -i -e "s|nightly|nightly-$(git rev-parse HEAD | cut -c 1-7)|" src/index.js
|
sed -i -e "s|nightly|nightly-$(git rev-parse HEAD | cut -c 1-7)|" src/index.js
|
||||||
sed -i -e "/config.setup = true/a\ config.autoupdate = false;" src/config/index.js
|
sed -i -e "/config.setup = true/a\ config.autoupdate = false;" src/config/index.js
|
||||||
sed -i -e "s|process.resourcesPath|'/usr/lib/${_pkgname}/resources'|" src/utils/buildInfo.js
|
sed -i -e "s|process.resourcesPath|'/usr/lib/${_pkgname}'|" src/utils/buildInfo.js
|
||||||
sed -i -e "s|^Exec=\${exec}$|Exec=/usr/bin/${_pkgname}|" \
|
sed -i -e "s|^Exec=\${exec}$|Exec=/usr/bin/${_pkgname}|" \
|
||||||
-e "s|^Name=\${basename(exec)}$|Name=${_pkgname^}|" src/autoStart.js
|
-e "s|^Name=\${basename(exec)}$|Name=${_pkgname^}|" src/autoStart.js
|
||||||
node scripts/strip.js
|
node scripts/strip.js
|
||||||
|
@ -77,14 +77,14 @@ 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 \
|
||||||
"${pkgdir}"/usr/share/applications/$_pkgname.desktop
|
"${pkgdir}"/usr/share/applications/$_pkgname.desktop
|
||||||
|
|
||||||
# overwrite Discord asar
|
# overwrite Discord asar
|
||||||
install -Dm 644 openasar/app.asar "${pkgdir}"/usr/lib/$_pkgname/resources/
|
install -Dm 644 openasar/app.asar "${pkgdir}"/usr/lib/$_pkgname/
|
||||||
|
|
||||||
# install the launch script
|
# install the launch script
|
||||||
install -Dm 755 discord-launcher.sh "${pkgdir}"/usr/bin/$_pkgname
|
install -Dm 755 discord-launcher.sh "${pkgdir}"/usr/bin/$_pkgname
|
||||||
|
|
|
@ -37,6 +37,6 @@ unset flags_file krisp_bin krisp_b2
|
||||||
|
|
||||||
|
|
||||||
exec /usr/lib/@ELECTRON@/electron \
|
exec /usr/lib/@ELECTRON@/electron \
|
||||||
/usr/lib/@PKGNAME@/resources/app.asar \
|
/usr/lib/@PKGNAME@/app.asar \
|
||||||
--ozone-platform-hint=auto \
|
--ozone-platform-hint=auto \
|
||||||
"${flags[@]}" "$@"
|
"${flags[@]}" "$@"
|
||||||
|
|
Loading…
Reference in a new issue