fix update process sometimes installing an older build

This commit is contained in:
opa334 2022-10-31 23:58:06 +01:00
parent 2256d70601
commit 1c782c3b5e
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@
else else
{ {
NSString* tarTmpPath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"TrollStore.tar"]; NSString* tarTmpPath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"TrollStore.tar"];
[[NSFileManager defaultManager] removeItemAtPath:tarTmpPath error:nil];
[[NSFileManager defaultManager] copyItemAtPath:location.path toPath:tarTmpPath error:nil]; [[NSFileManager defaultManager] copyItemAtPath:location.path toPath:tarTmpPath error:nil];
doHandler(tarTmpPath); doHandler(tarTmpPath);