Manuel
44f59b0502
* upstream release * Slight refactor of package function and launcher script * Replace Krisp patcher with more robust Python script * Add support for DISCORD_USER_DATA_DIR env var
44 lines
1.5 KiB
Bash
44 lines
1.5 KiB
Bash
post_upgrade() {
|
|
# return if old package version is greater than or equal to 0.0.55-1...
|
|
(( $(vercmp $2 '0.0.55-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
|
|
|
|
# return if old package version is greater than or equal to 0.0.39-2...
|
|
(( $(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
|
|
|
|
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
|
|
|
|
# return if old package version is greater than or equal to 0.0.27-2...
|
|
(( $(vercmp $2 '0.0.27-2') >= 0 )) && return
|
|
|
|
cat <<EOF
|
|
==> You can now set additional Electron flags in '~/.config/discord-flags.conf'.
|
|
EOF
|
|
}
|
|
|
|
post_install() {
|
|
cat <<EOF
|
|
==> 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.
|
|
==> In case of performance problems consider setting additional flags
|
|
in '~/.config/discord-flags.conf'.
|
|
EOF
|
|
}
|