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

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];

View File

@ -33,7 +33,7 @@ cp ./out/TrollStore.app/trollstorehelper ../PersistenceHelper/Resources/trollsto
cd ../PersistenceHelper
make clean
make package FINALPACKAGE=1
make do FINALPACKAGE=1
cd -
cp ../PersistenceHelper/.theos/obj/TrollStorePersistenceHelper.app/TrollStorePersistenceHelper ./out/TrollStore.app/PersistenceHelper