upgpkg: discord-electron 0.0.39-2: update electron

* Update Electron version to 27
* Update launch script to require config variable set in order to patch Krisp binary
This commit is contained in:
Manuel 2024-01-04 15:07:13 +01:00
parent 1f7fac9ee7
commit 27a74ff543
Signed by: Manuel
GPG key ID: 4085037435E1F07A
4 changed files with 26 additions and 20 deletions

View file

@ -1,4 +1,12 @@
post_upgrade() {
# return if old package version is greater than or equal to 0.0.39-1...
(( $(vercmp $2 '0.0.39-2') >= 0 )) && return
cat <<EOF
==> In order to patch Krisp noise suppression support set 'PATCH_KRISP=true'
in '~/.config/discord.conf' in addition to having 'rizin' installed.
EOF
# return if old package version is greater than or equal to 0.0.27-5...
(( $(vercmp $2 '0.0.27-5') >= 0 )) && return
@ -18,9 +26,10 @@ EOF
post_install() {
cat <<EOF
==> For Krisp noise suppression support consider installing 'rizin'. Restart
your Discord client after installation or update to apply the patch.
==> In case of performance problems consider adding or uncommenting Electron
flags in '~/.config/discord-flags.conf'.
==> For Krisp noise suppression support consider installing 'rizin' and
setting 'PATCH_KRISP=true' in '~/.config/discord.conf'. Restart your
Discord client afterwards to apply the patch.
==> In case of performance problems consider setting additional flags
in '~/.config/discord-flags.conf'.
EOF
}