62 lines
1.1 KiB
Plaintext
62 lines
1.1 KiB
Plaintext
#!/usr/bin/expect -f
|
|
set timeout 600
|
|
|
|
cd /Users/sergei/Desktop/WellNuo
|
|
spawn eas build --platform ios --profile production
|
|
|
|
expect {
|
|
"Do you want to log in to your Apple account?" {
|
|
send "y\r"
|
|
exp_continue
|
|
}
|
|
"Apple ID:" {
|
|
send "kosyakorel1@gmail.com\r"
|
|
exp_continue
|
|
}
|
|
"Using password" {
|
|
exp_continue
|
|
}
|
|
"How do you want to validate" {
|
|
send "\r"
|
|
exp_continue
|
|
}
|
|
"Please enter the 6 digit code" {
|
|
puts "\n\n=== NEED 2FA CODE - RUN MANUALLY ===\n"
|
|
interact
|
|
}
|
|
"Select a team" {
|
|
send "\r"
|
|
exp_continue
|
|
}
|
|
"Select a Provider" {
|
|
send "Robert\r"
|
|
exp_continue
|
|
}
|
|
"Would you like" {
|
|
send "y\r"
|
|
exp_continue
|
|
}
|
|
"Yes" {
|
|
send "y\r"
|
|
exp_continue
|
|
}
|
|
"No" {
|
|
send "n\r"
|
|
exp_continue
|
|
}
|
|
"Generate a new" {
|
|
send "\r"
|
|
exp_continue
|
|
}
|
|
"https://expo.dev/accounts" {
|
|
puts "\n\n=== BUILD STARTED ===\n"
|
|
expect eof
|
|
}
|
|
timeout {
|
|
puts "\n\n=== TIMEOUT ===\n"
|
|
}
|
|
eof {
|
|
puts "\n\n=== FINISHED ===\n"
|
|
}
|
|
}
|