AutoUpdate: Remove the old updater app on macOS if it exists
This commit is contained in:
parent
644508cfd7
commit
feb2b287e8
|
@ -84,6 +84,12 @@ void CleanupFromPreviousUpdate()
|
||||||
{
|
{
|
||||||
// Remove the relocated updater file.
|
// Remove the relocated updater file.
|
||||||
File::DeleteDirRecursively(UpdaterPath(true));
|
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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue