upgpkg: discord-electron-openasar 0.0.27+810-1

Update to latest OpenAsar commit
Unset not needed variables in launch script
Rewording install file text
This commit is contained in:
Manuel 2023-06-08 21:56:34 +02:00
parent 8689b4a782
commit 7ad0778608
Signed by: Manuel
GPG key ID: 4085037435E1F07A
4 changed files with 21 additions and 18 deletions

View file

@ -2,14 +2,16 @@
set -euo pipefail
declare -a flags
flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/@PKGNAME@-flags.conf"
krisp_bin="${XDG_CONFIG_HOME:-$HOME/.config}/@PKGNAME@/@PKGVER@/modules/@PKGNAME@_krisp/@PKGNAME@_krisp.node"
declare -a flags
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) == @KRISPB2@ ]]; then
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
fi
@ -34,6 +36,9 @@ for line in "${MAPFILE[@]}"; do
fi
done
unset flags_file krisp_bin krisp_b2
exec /usr/bin/electron@ELECTRON@ \
/usr/lib/@PKGNAME@/app.asar \
--ozone-platform-hint=auto \