You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- if ANDROID_HOME is set, check if the path is valid and clean it up if the path is not existing
- add more path checks when updating Android SDK tools
- add better coloring of messages
Copy file name to clipboardExpand all lines: native-script.ps1
+26-12Lines changed: 26 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ function Install($programName, $message, $script, $shouldExit) {
43
43
} until ($script:answer-eq"y"-or$script:answer-eq"n"-or$script:answer-eq"a")
44
44
45
45
if ($script:answer-eq"n") {
46
-
Write-Host-ForegroundColor Yellow "You have chosen not to install $($programName). Some features of NativeScript may not work correctly if you haven't already installed it"
46
+
Write-Host-ForegroundColor Yellow "WARNING: You have chosen not to install $($programName). Some features of NativeScript may not work correctly if you haven't already installed it"
47
47
return
48
48
}
49
49
}
@@ -76,12 +76,18 @@ Install "Google Chrome" "Installing Google Chrome (required to debug NativeScrip
76
76
77
77
Install "Java Development Kit""Installing Java Development Kit""choco upgrade jdk8 --force"
echo y | cmd /c "%ANDROID_HOME%\toolsOld\bin\sdkmanager.bat""tools"
126
+
Remove-Item"$androidToolsOldPath"-Force -Recurse
127
+
} else {
128
+
Write-Host-ForegroundColor Red "ERROR: Failed to update Android SDK tools. This is a blocker to install default emulator, so please update manually once this installation has finished."
0 commit comments