mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 18:53:40 +01:00
[skip ci] Add more information to staging errors (#468)
* Point to my forks and attempt to add more information to staging errors * Improve error message a bit * Revert fetch-prebuilt.sh changes * Undo some whitespace changes * missed one * oops * [skip ci] * [skip ci] * [skip ci] remove staging directory from install app error Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> --------- Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Co-authored-by: Dadoum <dadoum@protonmail.com>
This commit is contained in:
@@ -198,22 +198,15 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
||||
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
||||
}
|
||||
}
|
||||
var attempts = 10
|
||||
while (attempts != 0){
|
||||
print("Install ipa attempts left: \(attempts)")
|
||||
do {
|
||||
try install_ipa(installedApp.bundleIdentifier)
|
||||
installing = false
|
||||
installedApp.refreshedDate = Date()
|
||||
self.finish(.success(installedApp))
|
||||
break
|
||||
} catch {
|
||||
attempts -= 1
|
||||
if (attempts <= 0){
|
||||
installing = false
|
||||
self.finish(.failure(MinimuxerError.InstallApp))
|
||||
}
|
||||
}
|
||||
|
||||
do {
|
||||
try install_ipa(installedApp.bundleIdentifier)
|
||||
installing = false
|
||||
installedApp.refreshedDate = Date()
|
||||
self.finish(.success(installedApp))
|
||||
} catch let error {
|
||||
installing = false
|
||||
self.finish(.failure(error))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user