From 91e85d8a11e9761e1988899ec33b1c250942e087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Wed, 30 Aug 2023 23:55:45 +0200 Subject: [PATCH] upgpkg: discord-electron 0.0.29-2 Update Electron version to 24 Update Krisp patch --- discord-electron/.SRCINFO | 8 ++++---- discord-electron/PKGBUILD | 9 ++++----- discord-electron/discord-launcher.sh | 4 ++-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/discord-electron/.SRCINFO b/discord-electron/.SRCINFO index a192c38..ba4e272 100644 --- a/discord-electron/.SRCINFO +++ b/discord-electron/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = discord-electron - pkgdesc = Discord using system provided electron (v22) for increased security and performance + pkgdesc = Discord using system provided electron (v24) for increased security and performance pkgver = 0.0.29 - pkgrel = 1 + pkgrel = 2 url = https://discord.com install = discord-electron.install arch = x86_64 @@ -9,7 +9,7 @@ pkgbase = discord-electron makedepends = asar makedepends = curl makedepends = python-html2text - depends = electron22 + depends = electron24 depends = libxss optdepends = libpulse: Pulseaudio support optdepends = libappindicator-gtk3: Systray indicator support @@ -21,6 +21,6 @@ pkgbase = discord-electron source = https://dl.discordapp.net/apps/linux/0.0.29/discord-0.0.29.tar.gz source = discord-launcher.sh sha512sums = 38e4c21872fdf7b7716680b70e6f677274be50fce04d16831ed180d894965ca2f8cc8814148e16ca540f8dcba2bb749788f6980180f51d8b1f1556e1a8a368e0 - sha512sums = f516b1dba10f423f1ebe69b14f70740232b19d343b603c3479ba1e1dd2b7bcf472e92d354fde3a9d553bfae78207ae0420be60372a4b38ba78c3421172230826 + sha512sums = b0961f546a4016e24d516c6d1125c1af0e8ca84ab960f6abe10ec98c2c18543da2168ffb2676189ed110e9abbdb889abfb2c610954019250041a0a89b0b03bab pkgname = discord-electron diff --git a/discord-electron/PKGBUILD b/discord-electron/PKGBUILD index 360c1a3..d1c1db7 100644 --- a/discord-electron/PKGBUILD +++ b/discord-electron/PKGBUILD @@ -13,9 +13,9 @@ pkgname=discord-electron _pkgname=discord -_electron=22 +_electron=24 pkgver=0.0.29 -pkgrel=1 +pkgrel=2 pkgdesc="Discord using system provided electron (v${_electron}) for increased security and performance" arch=('x86_64') provides=("${_pkgname}") @@ -35,10 +35,9 @@ optdepends=( source=("https://dl.discordapp.net/apps/linux/${pkgver}/${_pkgname}-${pkgver}.tar.gz" 'discord-launcher.sh') sha512sums=('38e4c21872fdf7b7716680b70e6f677274be50fce04d16831ed180d894965ca2f8cc8814148e16ca540f8dcba2bb749788f6980180f51d8b1f1556e1a8a368e0' - 'f516b1dba10f423f1ebe69b14f70740232b19d343b603c3479ba1e1dd2b7bcf472e92d354fde3a9d553bfae78207ae0420be60372a4b38ba78c3421172230826') + 'b0961f546a4016e24d516c6d1125c1af0e8ca84ab960f6abe10ec98c2c18543da2168ffb2676189ed110e9abbdb889abfb2c610954019250041a0a89b0b03bab') -# Krisp patch stopped working, will update later -_krisp_b2sum='' +_krisp_b2sum='09db0a3b1e736049f39d8fb6c726b6468e725e503dc9109ebb17930d68007cc3818c7123ad836c36df704da9c803f944b77b3412a1b0418552c87be56ed11604' prepare() { # prepare launcher script diff --git a/discord-electron/discord-launcher.sh b/discord-electron/discord-launcher.sh index 6012a36..86fc394 100644 --- a/discord-electron/discord-launcher.sh +++ b/discord-electron/discord-launcher.sh @@ -12,8 +12,8 @@ krisp_b2=@KRISPB2@ if hash rizin &> /dev/null; then # Patch Krisp binary to ignore signature check if [[ -f "${krisp_bin}" && $(b2sum "${krisp_bin}" | head -c 128) == $krisp_b2 ]]; then - addr=$(rz-find -x '4889dfe8........4889dfe8' "${krisp_bin}" | head -n1) - rizin -q -w -c "s $addr + 0x12 ; wao nop" "${krisp_bin}" &> /dev/null + addr=$(rz-find -x '4881ec00010000' "${krisp_bin}" | head -n1) + rizin -q -w -c "s $addr + 0x30 ; wao nop" "${krisp_bin}" &> /dev/null fi fi