Skip to content
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
13 changes: 0 additions & 13 deletions setup/native-script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
10 changes: 2 additions & 8 deletions setup/native-script.rb
Original file line number Diff line number Diff line change
@@ -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)"

Expand Down Expand Up @@ -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."