Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
164 lines (106 sloc) 2.03 KB
#!/bin/bash
rm -rf ~/.duell
mkdir ~/.duell
mkdir ~/.duell/haxelib
haxelib setup ~/.duell/haxelib
expect -c "
spawn neko run.n self_setup -verbose
set timeout -1
expect \"Path to store repos from libraries?\"
send \"\r\"
expect \"URL to repo list?\"
send \"\r\"
expect \"Do you want to install the \\\"duell\\\" command?\"
send \"n\r\"b
expect eof
"
expect -c "
spawn haxelib run duell_duell setup mac -verbose -v 2.0.0
set timeout -1
expect \"A library for setup of mac environment is not currently installed.\"
send \"y\r\"
expect eof
"
expect -c "
spawn haxelib run duell_duell setup flash -verbose -v 2.0.0
set timeout -1
expect \"A library for setup of flash environment is not currently installed.\"
send \"y\r\"
expect \"Download and install the Adobe AIR SDK\"
send \"y\r\"
expect \"Air SDK Location\"
send \"\r\"
expect {
\"File found\" {
send \"n\r\"
exp_continue
}
\"Go to the flash website\" {
send \"n\r\"
exp_continue
}
\"Download and install the Flash Debugger\" {
send \"n\r\"
exp_continue
}
}
"
expect -c "
spawn haxelib run duell_duell setup android -verbose -v 5.0.1
set timeout -1
expect \"A library for setup of android environment is not currently installed.\"
send \"y\r\"
expect \"Download the android SDK\"
send \"y\r\"
expect \"Android SDK Location\"
send \"\r\"
expect {
\"File found\" {
send \"n\r\"
exp_continue
}
\"necessary Android packages\" {
send \"y\r\"
}
}
expect {
\"accept the license\" {
send \"y\r\"
exp_continue
}
\"you need to install HAXM\" {
send \"n\r\"
exp_continue
}
\"Duell Android emulators\" {
send \"y\r\"
exp_continue
}
\"Do you wish to create a custom hardware profile\" {
send \"\r\"
exp_continue
}
\"Download the android NDK\" {
send \"y\r\"
}
}
expect \"Android NDK Location\"
send \"\r\"
expect {
\"File found\" {
send \"n\r\"
exp_continue
}
\"Download Apache Ant\" {
send \"y\r\"
}
}
expect \"Apache Ant Location\"
send \"\r\"
expect {
\"File found\" {
send \"n\r\"
exp_continue
}
}
"
You can’t perform that action at this time.