mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[AltStore] Adds device UDID to Info.plist when refreshing AltStore
This commit is contained in:
@@ -183,6 +183,7 @@ private extension ResignAppOperation
|
||||
let ipaURL = installedApp.ipaURL
|
||||
let bundleIdentifier = installedApp.bundleIdentifier
|
||||
let openURL = installedApp.openAppURL
|
||||
let appIdentifier = installedApp.app.identifier
|
||||
|
||||
DispatchQueue.global().async {
|
||||
do
|
||||
@@ -210,6 +211,12 @@ private extension ResignAppOperation
|
||||
|
||||
infoDictionary[Bundle.Info.urlTypes] = allURLSchemes
|
||||
|
||||
if appIdentifier == App.altstoreAppID
|
||||
{
|
||||
guard let udid = Bundle.main.object(forInfoDictionaryKey: Bundle.Info.deviceID) as? String else { throw OperationError.unknownUDID }
|
||||
infoDictionary[Bundle.Info.deviceID] = udid
|
||||
}
|
||||
|
||||
try (infoDictionary as NSDictionary).write(to: bundle.infoPlistURL)
|
||||
|
||||
completionHandler(.success(appBundleURL))
|
||||
|
||||
Reference in New Issue
Block a user