fix update linux console

This commit is contained in:
DanielSvoboda 2024-10-04 14:40:21 -03:00 committed by GitHub
parent a5968b630d
commit 0f76f256f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -454,6 +454,10 @@ void CheckUpdate::Install() {
" sleep 2\n"
" extract_file\n"
" sleep 2\n"
" if pgrep -f \"Shadps4-qt.AppImage\" > /dev/null; then\n"
" pkill -f \"Shadps4-qt.AppImage\"\n"
" sleep 2\n"
" fi\n"
" cp -r \"%2/\"* \"%3/\"\n"
" sleep 2\n"
" rm \"%3/update.sh\"\n"
@ -525,4 +529,4 @@ void CheckUpdate::Install() {
this, tr("Error"),
QString(tr("Failed to create the update script file") + ":\n" + scriptFileName));
}
}
}