Skip to content

Commit b83c44c

Browse files
committed
Merge pull request #1487 from NativeScript/dont-install-tns
Do not install the CLI
2 parents 3e3706a + 34efe39 commit b83c44c

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

setup/native-script.ps1

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ write-host "To ensure consistent environment, this script will re-install all Na
2020
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Google Chrome (required to debug NativeScript apps)"
2121
cinst googlechrome --force --yes
2222

23-
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing node.js"
24-
cinst nodejs.install -version 4.3.0 --force --yes
25-
2623
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing Java Development Kit"
2724
cinst jdk8 --force --yes
2825

@@ -47,16 +44,6 @@ if (!$env:JAVA_HOME) {
4744
$env:JAVA_HOME = $javaHome;
4845
}
4946

50-
# install NativeScript CLI
51-
write-host -BackgroundColor Black -ForegroundColor Yellow "Installing NativeScript CLI"
52-
53-
$oldPathUser = [Environment]::GetEnvironmentVariable("PATH", "User")
54-
$pathMachine = [Environment]::GetEnvironmentVariable("PATH", "Machine")
55-
$myPath = [Environment]::GetEnvironmentVariable("PATH")
56-
[Environment]::SetEnvironmentVariable("PATH", "$myPath;$oldPathUser;$pathMachine;$env:ProgramFiles\nodejs")
57-
58-
npm install -g nativescript
59-
6047
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."
6148
Write-Host "Press any key to continue..."
6249
[void][System.Console]::ReadKey($true)

setup/native-script.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# coding: utf-8
22

33
# 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)"
4+
# To run it against PRODUCTION branch (recommended) use
5+
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.rb)"
66
# To run it against MASTER branch (usually only developers of NativeScript need to) use
77
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/master/setup/native-script.rb)"
88

@@ -51,10 +51,4 @@
5151
puts "Configuring your system for Android development... This might take some time, please, be patient."
5252
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"
5353

54-
puts "Installing Node.js 4"
55-
system('brew install homebrew/versions/node4-lts')
56-
57-
puts "Installing NativeScript CLI..."
58-
system "/usr/local/bin/npm install -g nativescript"
59-
6054
puts "The ANDROID_HOME and JAVA_HOME environment variables have been added to your .profile. Restart the terminal to use them."

0 commit comments

Comments
 (0)