Qt: Fix installer updates if a version number is in the filename (fixes #3109)

This commit is contained in:
Vicki Pfau 2024-11-24 17:55:04 -08:00
parent a5e3e746b2
commit 7ec56763f9
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ Other fixes:
- Qt: Fix crash when applying changes to GB I/O registers in I/O view - Qt: Fix crash when applying changes to GB I/O registers in I/O view
- Qt: Fix LCDC background priority/enable bit being mis-mapped in I/O view - Qt: Fix LCDC background priority/enable bit being mis-mapped in I/O view
- Qt: Fix saving named states breaking when screenshot states disabled (fixes mgba.io/i/3320) - Qt: Fix saving named states breaking when screenshot states disabled (fixes mgba.io/i/3320)
- Qt: Fix installer updates if a version number is in the filename (fixes mgba.io/i/3109)
- Updater: Fix updating appimage across filesystems - Updater: Fix updating appimage across filesystems
Misc: Misc:
- Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826) - Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826)

View File

@ -370,7 +370,7 @@ void GBAApp::cleanupAfterUpdate() {
void GBAApp::restartForUpdate() { void GBAApp::restartForUpdate() {
QFileInfo updaterPath(m_updater.updateInfo().url.path()); QFileInfo updaterPath(m_updater.updateInfo().url.path());
QDir configDir(ConfigController::configDir()); QDir configDir(ConfigController::configDir());
if (updaterPath.completeSuffix() == "exe") { if (updaterPath.suffix() == "exe") {
m_invokeOnExit = configDir.filePath(QLatin1String("update.exe")); m_invokeOnExit = configDir.filePath(QLatin1String("update.exe"));
} else { } else {
QFile updater(":/updater"); QFile updater(":/updater");