From 0c2d4861df9fba068e408a6d047cb4c05f191a11 Mon Sep 17 00:00:00 2001 From: Todor Totev Date: Mon, 15 Feb 2016 14:11:37 +0200 Subject: [PATCH 1/2] Change docs to recommend production branch --- setup/native-script.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/native-script.rb b/setup/native-script.rb index a6762a303c..963d54d25c 100644 --- a/setup/native-script.rb +++ b/setup/native-script.rb @@ -1,8 +1,8 @@ # 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 PRODUCTION branch (recommended) use +# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/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)" From 34efe39b23a87ae43e3c30220b527771fe46cefb Mon Sep 17 00:00:00 2001 From: Todor Totev Date: Mon, 15 Feb 2016 17:05:43 +0200 Subject: [PATCH 2/2] Do not install the CLI See https://github.com/NativeScript/NativeScript/issues/1556 --- setup/native-script.ps1 | 13 ------------- setup/native-script.rb | 6 ------ 2 files changed, 19 deletions(-) diff --git a/setup/native-script.ps1 b/setup/native-script.ps1 index 7fdf740a49..1c31b5b8cf 100644 --- a/setup/native-script.ps1 +++ b/setup/native-script.ps1 @@ -20,9 +20,6 @@ write-host "To ensure consistent environment, this script will re-install all Na write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Google Chrome (required to debug NativeScript apps)" cinst googlechrome --force --yes -write-host -BackgroundColor Black -ForegroundColor Yellow "Installing node.js" -cinst nodejs.install -version 4.3.0 --force --yes - write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Java Development Kit" cinst jdk8 --force --yes @@ -47,16 +44,6 @@ if (!$env:JAVA_HOME) { $env:JAVA_HOME = $javaHome; } -# install NativeScript CLI -write-host -BackgroundColor Black -ForegroundColor Yellow "Installing NativeScript CLI" - -$oldPathUser = [Environment]::GetEnvironmentVariable("PATH", "User") -$pathMachine = [Environment]::GetEnvironmentVariable("PATH", "Machine") -$myPath = [Environment]::GetEnvironmentVariable("PATH") -[Environment]::SetEnvironmentVariable("PATH", "$myPath;$oldPathUser;$pathMachine;$env:ProgramFiles\nodejs") - -npm install -g nativescript - 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." Write-Host "Press any key to continue..." [void][System.Console]::ReadKey($true) diff --git a/setup/native-script.rb b/setup/native-script.rb index 963d54d25c..e8c2079412 100644 --- a/setup/native-script.rb +++ b/setup/native-script.rb @@ -51,10 +51,4 @@ puts "Configuring your system for Android development... This might take some time, please, be patient." system "echo yes | /usr/local/opt/android-sdk/tools/android update sdk --filter tools,platform-tools,android-23,build-tools-23.0.2,extra-android-m2repository --all --no-ui" -puts "Installing Node.js 4" -system('brew install homebrew/versions/node4-lts') - -puts "Installing NativeScript CLI..." -system "/usr/local/bin/npm install -g nativescript" - puts "The ANDROID_HOME and JAVA_HOME environment variables have been added to your .profile. Restart the terminal to use them."