Skip to content

Commit a749b92

Browse files
committed
Merge pull request #1772 from NativeScript/kerezov/shorten-setup-urls
Shorten setup scripts links
2 parents e190c19 + e782c2e commit a749b92

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ You can install and run the NativeScript CLI on Windows, OS X or Linux.
7272
### Setup Script
7373
To quickly set up your system for the latest NativeScript CLI, paste the following PowerShell script in the **Command Prompt** and hit `Enter`:
7474
```cmd
75-
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.ps1'))"
75+
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"
7676
```
7777

7878
Alternatively, your can paste the following PowerShell setup script in a **Windows PowerShell console** and hit `Enter`:
7979
```PowerShell
80-
start-process -FilePath PowerShell.exe -Verb Runas -Wait -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.ps1'))"
80+
start-process -FilePath PowerShell.exe -Verb Runas -Wait -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"
8181
```
8282
> Both scripts require that you have **.NET 4.0 or later** installed on your system. You can download .NET 4.6.1 from this [link](http://go.microsoft.com/fwlink/?LinkId=671729).
8383
@@ -143,7 +143,7 @@ android update sdk --filter tools,platform-tools,android-23,build-tools-23.0.2,s
143143
### Setup Script
144144
To quickly set up your system for the latest NativeScript CLI, paste the following Ruby script in the **Terminal** and hit `Enter`:
145145
```Shell
146-
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.rb)"
146+
sudo ruby -e "$(curl -fsSL https://www.nativescript.org/setup/mac)"
147147
```
148148

149149
### Manual Setup

setup/native-script.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# A PowerShell script to set up Windows machine for NativeScript development
33
# NOTE: The script requires at least a version 4.0 .NET framework installed
44
# To run it inside a COMMAND PROMPT against the production branch (only one supported with self-elevation) use
5-
# @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.ps1'))"
5+
# @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"
66
# To run it inside a WINDOWS POWERSHELL console against the production branch (only one supported with self-elevation) use
7-
# start-process -FilePath PowerShell.exe -Verb Runas -Wait -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.ps1'))"
7+
# start-process -FilePath PowerShell.exe -Verb Runas -Wait -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"
88

99
# Check if latest .NET framework installed is at least 4
1010
$dotNetVersions = Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemProperty -name Version,Release -EA 0 | Where { $_.PSChildName -match '^(?!S)\p{L}'} | Select Version

setup/native-script.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# A script to setup developer's workstation for developing with NativeScript
44
# To run it against PRODUCTION branch (only one supported with self-elevation) use
5-
# sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.rb)"
5+
# sudo ruby -e "$(curl -fsSL https://www.nativescript.org/setup/mac)"
66

77
# Only the user can manually download and install Xcode from App Store
88
unless Process.uid == 0

0 commit comments

Comments
 (0)