From 2dc285513daec7557c430b736db1f5fae9e4d464 Mon Sep 17 00:00:00 2001 From: Todor Totev Date: Wed, 18 Nov 2015 17:27:10 +0200 Subject: [PATCH] Add instructions for use to setup scripts Rename the windows setup script to ps1, so it can be directly executed if the user has chocolatey installed already --- setup/{native-script.txt => native-script.ps1} | 6 +++++- setup/native-script.rb | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) rename setup/{native-script.txt => native-script.ps1} (76%) diff --git a/setup/native-script.txt b/setup/native-script.ps1 similarity index 76% rename from setup/native-script.txt rename to setup/native-script.ps1 index 206d2c5e42..48e61a0a17 100644 --- a/setup/native-script.txt +++ b/setup/native-script.ps1 @@ -1,5 +1,9 @@ # A Boxstarter script to set up Windows machine for NativeScript development +# To run it against RELEASE branch (recommended) use +# http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/NativeScript/nativescript-cli/release/setup/native-script.ps1 +# To run it against MASTER branch (usually only developers of NativeScript need to) use +# http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/NativeScript/nativescript-cli/master/setup/native-script.ps1 # install dependenciess with Chocolately @@ -16,7 +20,7 @@ write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Android SD cinst android-sdk # setup android sdk -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 +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 # setup environment diff --git a/setup/native-script.rb b/setup/native-script.rb index 9119062838..e6c864e47a 100644 --- a/setup/native-script.rb +++ b/setup/native-script.rb @@ -1,5 +1,11 @@ # coding: utf-8 +# A script to setup developer's workstation for developing with NativeScript +# To run it against RELEASE branch (recommended) use +# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/release/setup/native-script.rb)" +# To run it against MASTER branch (usually only developers of NativeScript need to) use +# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/master/setup/native-script.rb)" + # Only the user can manually download and install Xcode from App Store puts "NativeScript requires Xcode." 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 system "/usr/local/bin/npm install -g nativescript" ohai "Configuring your system for Android development... This might take some time, please, be patient." - 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" + system "echo yes | android update sdk --filter tools,platform-tools,android-23,build-tools-23.0.2,extra-android-m2repository --all --no-ui" ohai "The ANDROID_HOME and JAVA_HOME environment variables have been added to your .bash_profile. Restart the terminal to use them." end