mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Auto-install the x86 ABI if it isn't installed
This could be big actually; it means we don't need to bundle it
This commit is contained in:
@@ -107,11 +107,20 @@ set_config () {
|
||||
mv -f ${TEMP_FILE} ${CONFIG_FILE}
|
||||
}
|
||||
|
||||
install_x86 () {
|
||||
echo "Android x86 System image not found. Found targets:"
|
||||
android list target
|
||||
echo "Downloading x86 system image..."
|
||||
echo y | android update sdk -t sys-img-x86-android-19 --all -u
|
||||
}
|
||||
|
||||
# create avd if necessary
|
||||
if [[ ! $("${ANDROID_BUNDLE}/android-sdk/tools/android" list avd | grep Name) ]] ; then
|
||||
#ABI="default/armeabi-v7a"
|
||||
ABI="default/x86"
|
||||
|
||||
(android list target | grep ABIs | grep default/x86 > /dev/null) || install_x86
|
||||
|
||||
echo "
|
||||
" | "${ANDROID_BUNDLE}/android-sdk/tools/android" create avd --target 1 --name meteor --abi ${ABI} --path ${ANDROID_BUNDLE}/meteor_avd/ 1>&2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user