Fix TrollHelper TrollStore installation (closes #1), release was silently updated so redownload

This commit is contained in:
opa334
2022-09-02 18:30:36 +02:00
parent 264a8ab353
commit 28147cf14f
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -171,9 +171,13 @@
}
else
{
int ret = spawnRoot(helperPath(), @[@"install-trollstore", location.path]);
NSString* tarTmpPath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"TrollStore.tar"];
[[NSFileManager defaultManager] copyItemAtPath:location.path toPath:tarTmpPath error:nil];
int ret = spawnRoot(helperPath(), @[@"install-trollstore", tarTmpPath]);
dispatch_async(dispatch_get_main_queue(), ^
{
[[NSFileManager defaultManager] removeItemAtPath:tarTmpPath error:nil];
[self stopActivityWithCompletion:^
{
[self reloadSpecifiers];