diff options
| author | OatmealDome <julian@oatmealdome.me> | 2024-08-08 02:51:18 -0400 |
|---|---|---|
| committer | OatmealDome <julian@oatmealdome.me> | 2024-08-08 02:51:18 -0400 |
| commit | feb2b287e8cee719d452042b5f475f3915ee8d77 (patch) | |
| tree | fa793ea9dc507a58ec72ecf8b3b183ae0c529ae1 /Source/Core/UICommon/AutoUpdate.cpp | |
| parent | 644508cfd738a0cb44dd193644360d36f9cbb752 (diff) | |
AutoUpdate: Remove the old updater app on macOS if it exists
Diffstat (limited to 'Source/Core/UICommon/AutoUpdate.cpp')
| -rw-r--r-- | Source/Core/UICommon/AutoUpdate.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/UICommon/AutoUpdate.cpp b/Source/Core/UICommon/AutoUpdate.cpp index 0f1ea63d58..e1d6b7732c 100644 --- a/Source/Core/UICommon/AutoUpdate.cpp +++ b/Source/Core/UICommon/AutoUpdate.cpp @@ -84,6 +84,12 @@ void CleanupFromPreviousUpdate() { // Remove the relocated updater file. File::DeleteDirRecursively(UpdaterPath(true)); + + // Remove the old (non-embedded) updater app bundle. + // While the update process will delete the files within the old bundle after updating to a + // version with an embedded updater, it won't delete the folder structure of the bundle, so + // we should clean those leftovers up. + File::DeleteDirRecursively(File::GetExeDirectory() + DIR_SEP + "Dolphin Updater.app"); } #endif |
