mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +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 ipaURL = installedApp.ipaURL
|
||||||
let bundleIdentifier = installedApp.bundleIdentifier
|
let bundleIdentifier = installedApp.bundleIdentifier
|
||||||
let openURL = installedApp.openAppURL
|
let openURL = installedApp.openAppURL
|
||||||
|
let appIdentifier = installedApp.app.identifier
|
||||||
|
|
||||||
DispatchQueue.global().async {
|
DispatchQueue.global().async {
|
||||||
do
|
do
|
||||||
@@ -210,6 +211,12 @@ private extension ResignAppOperation
|
|||||||
|
|
||||||
infoDictionary[Bundle.Info.urlTypes] = allURLSchemes
|
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)
|
try (infoDictionary as NSDictionary).write(to: bundle.infoPlistURL)
|
||||||
|
|
||||||
completionHandler(.success(appBundleURL))
|
completionHandler(.success(appBundleURL))
|
||||||
|
|||||||
Reference in New Issue
Block a user