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
} until ($script:answer-eq"y"-or$script:answer-eq"n"-or$script:answer-eq"a")
38
38
39
39
if ($script:answer-eq"n") {
40
-
Write-Host-BackgroundColor Black -ForegroundColor Yellow "You've chosen not to install $($programName) some features of NativeScript may not work correctly if you haven't already installed it"
40
+
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"
41
41
return
42
42
}
43
43
}
44
44
45
-
Write-Host-BackgroundColor Black $message
45
+
Write-Host$message
46
46
Invoke-Expression($script)
47
47
if ($LASTEXITCODE-ne0) {
48
-
Write-Host-BackgroundColor Black -ForegroundColor Yellow "WARNING: $($programName) not installed"
48
+
Write-Host-ForegroundColor Yellow "WARNING: $($programName) not installed"
49
49
}
50
50
}
51
51
@@ -59,7 +59,7 @@ function Pause {
59
59
Install "Chocolately(It's mandatory for the rest of the script)""Installing Chocolately""iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))"
60
60
61
61
if ((Get-Command"cinst"-ErrorAction SilentlyContinue) -eq$null) {
62
-
Write-Host-BackgroundColor Black -ForegroundColor Red "Chocolatey is not installed or not configured properly. Download it from https://chocolatey.org/, install, set it up and run this script again."
62
+
Write-Host-ForegroundColor Red "Chocolatey is not installed or not configured properly. Download it from https://chocolatey.org/, install, set it up and run this script again."
63
63
Pause
64
64
exit1
65
65
}
@@ -90,5 +90,5 @@ if (!$env:JAVA_HOME) {
90
90
$env:JAVA_HOME=$javaHome;
91
91
}
92
92
93
-
Write-Host-BackgroundColor Black -ForegroundColor Green "This script has modified your environment. You need to log off and log back on for the changes to take effect."
93
+
Write-Host-ForegroundColor Green "This script has modified your environment. You need to log off and log back on for the changes to take effect."
install("Java SE Development Kit","Installing the Java SE Development Kit... This might take some time, please, be patient.(You will be prompted for your password)",'brew cask install java',false,false)
83
+
install("Java SE Development Kit","Installing the Java SE Development Kit... This might take some time, please, be patient.(You will be prompted for your password)",'brew cask install java',false,false)
84
84
execute('echo "export JAVA_HOME=$(/usr/libexec/java_home)" >> ~/.profile',"Unable to set JAVA_HOME")
0 commit comments