Modern Apps git

← xtool.git

Fix non-iOS builds

Commit
5ab6ac7ce3b6e2e1cff9488fd3b62f4f05fa77a8
Author
Kabir Oberai <[email protected]>
When
2024-11-17 08:02 UTC (2 years ago)
Parents
a108f97

Diff

Supersign/Sources/Supersign/Integration/SuperchargeInstaller.swift
diff --git a/Supersign/Sources/Supersign/Integration/SuperchargeInstaller.swift b/Supersign/Sources/Supersign/Integration/SuperchargeInstaller.swiftindex 053b439..fc8b4e5 100644--- a/Supersign/Sources/Supersign/Integration/SuperchargeInstaller.swift+++ b/Supersign/Sources/Supersign/Integration/SuperchargeInstaller.swift@@ -95,7 +95,7 @@ public final class IntegratedInstaller {     }      let udid: String-    let connectionPreferences: Connection.Preferences+    let lookupMode: LookupMode     let appleID: String     let credentials: Credentials     let configureDevice: Bool@@ -160,7 +160,7 @@ public final class IntegratedInstaller {      public init(         udid: String,-        connectionPreferences: Connection.Preferences,+        lookupMode: LookupMode,         appleID: String,         credentials: Credentials,         configureDevice: Bool,@@ -168,7 +168,7 @@ public final class IntegratedInstaller {         delegate: IntegratedInstallerDelegate     ) {         self.udid = udid-        self.connectionPreferences = connectionPreferences+        self.lookupMode = lookupMode         self.appleID = appleID         self.credentials = credentials         self.configureDevice = configureDevice@@ -211,7 +211,7 @@ public final class IntegratedInstaller {         // TODO: Maybe use `Connection` here instead of creating the lockdown         // client manually? -        let device = try Device(udid: udid, lookupMode: connectionPreferences.lookupMode)+        let device = try Device(udid: udid, lookupMode: lookupMode)          guard updateProgress(to: 1/3) else { return nil } @@ -297,7 +297,7 @@ public final class IntegratedInstaller {         guard shouldContinue() else { return }         executionStateLock.lock()         defer { executionStateLock.unlock() }-        let appInstaller = AppInstaller(ipa: ipa, udid: udid, connectionPreferences: connectionPreferences)+        let appInstaller = AppInstaller(ipa: ipa, udid: udid, connectionPreferences: .init(lookupMode: lookupMode))         self.appInstaller = appInstaller         appInstaller.install(             progress: { stage in
Supersign/Sources/SupersignCLISupport/InstallCommand.swift
diff --git a/Supersign/Sources/SupersignCLISupport/InstallCommand.swift b/Supersign/Sources/SupersignCLISupport/InstallCommand.swiftindex 4577d00..ed0ae63 100644--- a/Supersign/Sources/SupersignCLISupport/InstallCommand.swift+++ b/Supersign/Sources/SupersignCLISupport/InstallCommand.swift@@ -43,7 +43,7 @@ struct InstallCommand: ParsableCommand {         }         let installer = IntegratedInstaller(             udid: client.udid,-            connectionPreferences: .init(lookupMode: .only(client.connectionType)),+            lookupMode: .only(client.connectionType),             appleID: username,             credentials: credentials,             configureDevice: false,
Supersign/Sources/SupersignCLISupport/SuperchargeCommand.swift
diff --git a/Supersign/Sources/SupersignCLISupport/SuperchargeCommand.swift b/Supersign/Sources/SupersignCLISupport/SuperchargeCommand.swiftindex e06ee40..123609f 100644--- a/Supersign/Sources/SupersignCLISupport/SuperchargeCommand.swift+++ b/Supersign/Sources/SupersignCLISupport/SuperchargeCommand.swift@@ -63,7 +63,7 @@ struct InstallSuperchargeCommand: ParsableCommand {         }         let installer = IntegratedInstaller(             udid: client.udid,-            connectionPreferences: .init(lookupMode: .only(.usb)),+            lookupMode: .only(.usb),             appleID: username,             credentials: credentials,             configureDevice: true,