2023-05-27 20:10:31 +02:00
|
|
|
post_upgrade() {
|
2023-06-02 21:52:38 +02:00
|
|
|
# return if old package version is greater than or equal to 0.0.27-5...
|
|
|
|
(( $(vercmp $2 '0.0.27+809-5') >= 0 )) && return
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
==> The launch script will now patch Krisp noise suppression support
|
|
|
|
if 'rizin' is installed. Restart your Discord client after update
|
|
|
|
to apply the patch
|
|
|
|
EOF
|
|
|
|
|
2023-05-27 20:10:31 +02:00
|
|
|
# return if old package version is greater than or equal to 0.0.27+809-2...
|
|
|
|
(( $(vercmp $2 '0.0.27+809-2') >= 0 )) && return
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
==> You can now add or uncomment additional Electron flags in
|
2023-05-27 21:55:29 +02:00
|
|
|
'~/.config/discord-flags.conf' (if XDG_CONFIG_HOME is not set)
|
2023-05-27 20:10:31 +02:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
cat <<EOF
|
2023-06-02 21:52:38 +02:00
|
|
|
==> For Krisp noise suppression support consider installing 'rizin'. Restart
|
|
|
|
your Discord client after installation or update to apply the patch
|
2023-05-27 20:10:31 +02:00
|
|
|
==> In case of performance problems consider adding or uncommenting Electron
|
2023-05-27 21:55:29 +02:00
|
|
|
flags in '~/.config/discord-flags.conf' (if XDG_CONFIG_HOME is not set)
|
2023-05-27 20:10:31 +02:00
|
|
|
EOF
|
|
|
|
}
|