2023-05-27 20:10:31 +02:00
|
|
|
post_upgrade() {
|
2024-06-09 21:51:20 +02:00
|
|
|
# return if old package version is greater than or equal to 0.0.55+827-1...
|
|
|
|
(( $(vercmp $2 '0.0.55+827-1') >= 0 )) && return
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
==> Instead of using 'rizin' to patch Krisp support a patcher written in Python
|
|
|
|
is now used. Consider installing the necessary optional dependencies to use
|
|
|
|
this feature.
|
|
|
|
EOF
|
|
|
|
|
2024-01-04 15:07:27 +01:00
|
|
|
# return if old package version is greater than or equal to 0.0.39+824-2...
|
|
|
|
(( $(vercmp $2 '0.0.39+824-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
|
|
|
|
|
2023-06-08 21:56:34 +02:00
|
|
|
# return if old package version is greater than or equal to 0.0.27+809-5...
|
2023-06-02 21:52:38 +02:00
|
|
|
(( $(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
|
2023-06-08 21:56:34 +02:00
|
|
|
to apply the patch.
|
2023-06-02 21:52:38 +02:00
|
|
|
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
|
2023-06-08 21:56:34 +02:00
|
|
|
==> You can now set additional Electron flags in '~/.config/discord-flags.conf'.
|
2023-05-27 20:10:31 +02:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
cat <<EOF
|
2024-06-09 21:51:20 +02:00
|
|
|
==> For Krisp noise suppression support consider installing the necessary optional
|
|
|
|
dependencies and setting 'PATCH_KRISP=true' in '~/.config/discord.conf'.
|
|
|
|
Restart your Discord client afterwards to apply the patch.
|
2023-06-08 21:56:34 +02:00
|
|
|
==> Additional Electron flags can be set in '~/.config/discord-flags.conf'.
|
2023-05-27 20:10:31 +02:00
|
|
|
EOF
|
|
|
|
}
|