mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 06:26:16 +01:00
Update example and README
This commit is contained in:
5
examples/minimal/README.md
Normal file
5
examples/minimal/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# minimal
|
||||
|
||||
A minimal sideloading CLI to to demonstrate isideload.
|
||||
|
||||
Usage: `minimal <appleid@icloud.com> <password> <app>`
|
||||
@@ -46,11 +46,6 @@ async fn main() {
|
||||
.login(apple_password, get_2fa_code)
|
||||
.await;
|
||||
|
||||
// match &account {
|
||||
// Ok(a) => println!("Logged in. {}", a),
|
||||
// Err(e) => panic!("Failed to log in to Apple ID: {:?}", e),
|
||||
// }
|
||||
|
||||
let mut account = account.unwrap();
|
||||
|
||||
let dev_session = DeveloperSession::from_account(&mut account)
|
||||
@@ -68,7 +63,8 @@ async fn main() {
|
||||
panic!("No devices found");
|
||||
}
|
||||
|
||||
let provider = devs.first()
|
||||
let provider = devs
|
||||
.first()
|
||||
.unwrap()
|
||||
.to_provider(UsbmuxdAddr::from_env_var().unwrap(), "isideload-demo");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user