[AltServer] Deletes downloaded AltStore.ipa after installing to device

This commit is contained in:
Riley Testut
2019-09-13 14:48:01 -07:00
parent deff48f9c3
commit 7536b09c4a

View File

@@ -84,6 +84,15 @@ extension ALTDeviceManager
let appBundleURL = try FileManager.default.unzipAppBundle(at: fileURL, toDirectory: destinationDirectoryURL)
do
{
try FileManager.default.removeItem(at: fileURL)
}
catch
{
print("Failed to remove downloaded .ipa.", error)
}
guard let application = ALTApplication(fileURL: appBundleURL) else { throw ALTError(.invalidApp) }
self.registerAppID(name: "AltStore", identifier: "com.rileytestut.AltStore", team: team) { (result) in