2024-09-14 08:04:18 +00:00
|
|
|
note() {
|
|
|
|
printf "${BLUE}==>${YELLOW} $1 ${WHITE}$2${ALL_OFF}\n"
|
|
|
|
}
|
|
|
|
|
|
|
|
msg1() {
|
|
|
|
printf "${BLUE}==>${WHITE} $1${ALL_OFF}\n"
|
|
|
|
}
|
|
|
|
|
|
|
|
msg2() {
|
|
|
|
printf " ${WHITE} $1${ALL_OFF}\n"
|
|
|
|
}
|
|
|
|
|
|
|
|
ALL_OFF="$(tput sgr0)"
|
|
|
|
BOLD="${ALL_OFF}$(tput bold)"
|
|
|
|
BLACK="${BOLD}$(tput setaf 0)"
|
|
|
|
RED="${BOLD}$(tput setaf 1)"
|
|
|
|
GREEN="${BOLD}$(tput setaf 2)"
|
|
|
|
YELLOW="${BOLD}$(tput setaf 3)"
|
|
|
|
BLUE="${BOLD}$(tput setaf 4)"
|
|
|
|
MAGENTA="${BOLD}$(tput setaf 5)"
|
|
|
|
CYAN="${BOLD}$(tput setaf 6)"
|
|
|
|
WHITE="${BOLD}$(tput setaf 7)"
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
note 'Warning:' "Contents of '/opt/ryujinx/Logs' will be deleted on uninstall."
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
post_install
|
|
|
|
}
|
|
|
|
|
2023-05-07 09:14:13 +00:00
|
|
|
pre_remove() {
|
2024-07-28 03:16:38 +00:00
|
|
|
if [ -d "/opt/ryujinx/Logs" ]; then
|
2024-02-18 23:33:29 +00:00
|
|
|
rm -rf /opt/ryujinx/Logs/*
|
|
|
|
fi
|
2023-05-07 09:14:13 +00:00
|
|
|
}
|