Skip to content

Commit 1fe89b1

Browse files
committed
Add messages to the user about installed products
Fix android sdk setup
1 parent e0aa429 commit 1fe89b1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setup/native-script.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33

44
# install dependenciess with Chocolately
55

6+
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Google Chrome (required to debug NativeScript apps)"
67
cinst googlechrome
8+
9+
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing node.js"
710
cinst nodejs.install -version 0.12.7
11+
12+
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Java Development Kit"
813
cinst jdk8
14+
15+
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Android SDK"
916
cinst android-sdk
1017

1118
# setup android sdk
12-
echo yes | cmd /c $env:localappdata\Android\android-sdk\tools\android update sdk --filter tools,platform-tools,android-22,build-tools-22.0.1,sys-img-x86-android-22,extra-android-m2repository,extra-google-m2repository,extra-android-support --all --no-ui
19+
echo yes | cmd /c $env:localappdata\Android\android-sdk\tools\android update sdk --filter "tools,platform-tools,android-22,build-tools-22.0.1,sys-img-x86-android-22,extra-android-m2repository,extra-google-m2repository,extra-android-support" --all --no-ui
1320

1421
# setup environment
1522

@@ -22,6 +29,7 @@ $myPath = [Environment]::GetEnvironmentVariable("PATH")
2229
[Environment]::SetEnvironmentVariable("PATH", "$oldPathUser;$env:localappdata\Android\android-sdk\tools;$env:localappdata\Android\android-sdk\platform-tools", "User")
2330

2431
# install NativeScript CLI
32+
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing NativeScript CLI"
2533
npm install -g nativescript
2634

2735
write-host -BackgroundColor Black -ForegroundColor Yellow "This script has modified your environment. You need to log off and log back on for the changes to take effect."

0 commit comments

Comments
 (0)