Skip to content

Commit 90b33c7

Browse files
author
Dimitar Topuzov
committed
Fix Windows setup script
1 parent 25b6825 commit 90b33c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

setup/native-script.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ echo y | cmd /c "$androidExecutable" update sdk --filter "extra-android-m2reposi
107107

108108
if ((Read-Host "Do you want to install Android emulator?") -eq 'y') {
109109
if ((Read-Host "Do you want to install HAXM (Hardware accelerated Android emulator)?") -eq 'y') {
110-
echo y | $ANDROID_HOME/tools/android update sdk --filter extra-intel-Hardware_Accelerated_Execution_Manager --all --no-ui
110+
echo y | cmd /c "$androidExecutable" update sdk --filter extra-intel-Hardware_Accelerated_Execution_Manager --all --no-ui
111111

112112
$haxmSilentInstaller = [io.path]::combine($env:ANDROID_HOME, "extras", "intel", "Hardware_Accelerated_Execution_Manager", "silent_install.bat")
113113
cmd /c "$haxmSilentInstaller"
114114

115-
echo y | $ANDROID_HOME/tools/android update sdk --filter sys-img-x86-android-23 --all --no-ui
116-
echo no | $ANDROID_HOME/tools/android create avd -n Emulator-Api23-Default -t android-23 --abi default/x86 -c 12M -f
115+
echo y | cmd /c "$androidExecutable" update sdk --filter sys-img-x86-android-23 --all --no-ui
116+
echo no | cmd /c "$androidExecutable" create avd -n Emulator-Api23-Default -t android-23 --abi default/x86 -c 12M -f
117117
} else {
118-
echo y | $ANDROID_HOME/tools/android update sdk --filter sys-img-armeabi-v7a-android-23 --all --no-ui
119-
echo no | $ANDROID_HOME/tools/android create avd -n Emulator-Api23-Default -t android-23 --abi default/armeabi-v7a -c 12M -f
118+
echo y | cmd /c "$androidExecutable" update sdk --filter sys-img-armeabi-v7a-android-23 --all --no-ui
119+
echo no | cmd /c "$androidExecutable" create avd -n Emulator-Api23-Default -t android-23 --abi default/armeabi-v7a -c 12M -f
120120
}
121121
}
122122

0 commit comments

Comments
 (0)