mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 03:22:30 +02:00
Merge pull request #9858 from OatmealDome/updater-fail
UpdaterCommon: Fix code signing error after updating on macOS
This commit is contained in:
commit
683807abce
@ -431,7 +431,7 @@ bool UpdateFiles(const std::vector<TodoList::UpdateOp>& to_update,
|
|||||||
std::string content_filename = HexEncode(op.new_hash.data(), op.new_hash.size());
|
std::string content_filename = HexEncode(op.new_hash.data(), op.new_hash.size());
|
||||||
fprintf(log_fp, "Updating file %s from content %s...\n", op.filename.c_str(),
|
fprintf(log_fp, "Updating file %s from content %s...\n", op.filename.c_str(),
|
||||||
content_filename.c_str());
|
content_filename.c_str());
|
||||||
if (!File::Copy(temp_path + DIR_SEP + content_filename, path))
|
if (!File::Rename(temp_path + DIR_SEP + content_filename, path))
|
||||||
{
|
{
|
||||||
fprintf(log_fp, "Could not update file %s.\n", op.filename.c_str());
|
fprintf(log_fp, "Could not update file %s.\n", op.filename.c_str());
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user