fix(patch): stop the deployed launcher inheriting a read-only flag

This commit is contained in:
kitbyte
2026-08-29 21:52:50 +03:00
parent 2cac40558d
commit df9aedcadc
5 changed files with 42 additions and 15 deletions
+2
View File
@@ -152,6 +152,8 @@ namespace AsarSharp.AsarFileSystem
return;
}
// A read-only or hidden archive would fail the swap the same way an overwrite does.
Extensions.ClearAttributes(dest);
// File.Replace swaps in one step, so dest is never observed missing or half-written.
File.Replace(tempPath, dest, null, true);
}