Merge pull request #8915 from OatmealDome/updater-temp-dir

macOS: Untranslocate the app bundle's path for the updater
This commit is contained in:
Léo Lam
2021-07-06 02:22:28 +02:00
committed by GitHub
3 changed files with 63 additions and 42 deletions

View File

@ -227,7 +227,7 @@ void AutoUpdateChecker::TriggerUpdate(const AutoUpdateChecker::NewVersionInforma
updater_flags["parent-pid"] = std::to_string(getpid());
#endif
updater_flags["install-base-path"] = File::GetExeDirectory();
updater_flags["log-file"] = File::GetExeDirectory() + DIR_SEP + UPDATER_LOG_FILE;
updater_flags["log-file"] = File::GetUserPath(D_LOGS_IDX) + UPDATER_LOG_FILE;
if (restart_mode == RestartMode::RESTART_AFTER_UPDATE)
updater_flags["binary-to-restart"] = File::GetExePath();