Skip to content

Add instructions for use to setup scripts #1213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion setup/native-script.txt → setup/native-script.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

# A Boxstarter script to set up Windows machine for NativeScript development
# To run it against RELEASE branch (recommended) use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it is worth using the 'production' branch (that we've discussed for our docs) here as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this branch ready yet?

# 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

Expand All @@ -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

Expand Down
8 changes: 7 additions & 1 deletion setup/native-script.rb
Original file line number Diff line number Diff line change
@@ -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."
Expand Down Expand Up @@ -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
Expand Down