Skip to content

Commit 691c9f9

Browse files
committed
Merge pull request #1213 from NativeScript/totev/improve-setup
Add instructions for use to setup scripts
2 parents 1f56cc0 + 2dc2855 commit 691c9f9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

setup/native-script.txt renamed to setup/native-script.ps1

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11

22
# A Boxstarter script to set up Windows machine for NativeScript development
3+
# To run it against RELEASE branch (recommended) use
4+
# http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/NativeScript/nativescript-cli/release/setup/native-script.ps1
5+
# To run it against MASTER branch (usually only developers of NativeScript need to) use
6+
# http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/NativeScript/nativescript-cli/master/setup/native-script.ps1
37

48
# install dependenciess with Chocolately
59

@@ -16,7 +20,7 @@ write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Android SD
1620
cinst android-sdk
1721

1822
# setup android sdk
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
23+
echo yes | cmd /c $env:localappdata\Android\android-sdk\tools\android update sdk --filter "tools,platform-tools,android-23,build-tools-23.0.2,extra-android-m2repository" --all --no-ui
2024

2125
# setup environment
2226

setup/native-script.rb

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# coding: utf-8
22

3+
# A script to setup developer's workstation for developing with NativeScript
4+
# To run it against RELEASE branch (recommended) use
5+
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/release/setup/native-script.rb)"
6+
# To run it against MASTER branch (usually only developers of NativeScript need to) use
7+
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/master/setup/native-script.rb)"
8+
39
# Only the user can manually download and install Xcode from App Store
410
puts "NativeScript requires Xcode."
511
puts "If you do not have Xcode installed, download and install it from App Store and run it once to complete its setup."
@@ -69,7 +75,7 @@ def install
6975
system "/usr/local/bin/npm install -g nativescript"
7076

7177
ohai "Configuring your system for Android development... This might take some time, please, be patient."
72-
system "echo yes | 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"
78+
system "echo yes | android update sdk --filter tools,platform-tools,android-23,build-tools-23.0.2,extra-android-m2repository --all --no-ui"
7379

7480
ohai "The ANDROID_HOME and JAVA_HOME environment variables have been added to your .bash_profile. Restart the terminal to use them."
7581
end

0 commit comments

Comments
 (0)