Fixes increasing app size when refreshing

We now delete temporary directory + resigned .ipa before installation is complete to ensure AltStore doesn’t quit before we have the chance to.
This commit is contained in:
Riley Testut
2019-12-11 12:26:48 -08:00
parent 48dfe5b2da
commit ae5ba81138
2 changed files with 37 additions and 4 deletions

View File

@@ -405,10 +405,7 @@ private extension AppManager
do { try installedApp.managedObjectContext?.save() }
catch { print("Error saving installed app.", error) }
}
}
do { try FileManager.default.removeItem(at: context.temporaryDirectory) }
catch { print("Failed to remove temporary directory.", error) }
}
print("Finished operation!", context.bundleIdentifier)