Deploy NativeScript App


The Windows or Debian setup NativeScript must be followed before following this guide.

This section describes how to deploy a NativeScript App.

Peek is deployed into python virtual environments, a new virtual environment is created for every deployment.

To package your own NativeScript App dependencies, see the following document Package NativeScript App.


Open a PowerShell window.

Download the NativeScript App dependencies deploy script. This is the only step in this section that requires the internet.

$file = "deploy_nativescript_app_win.ps1"
$uri = "$file";
Invoke-WebRequest -Uri $uri -UseBasicParsing -OutFile $file;

Run the deploy NativeScript App dependencies script. The script will complete with a print out of the environment the NativeScript App dependencies were deployed. Ensure you update the $ver variable with the environment version you’re deploying. Also update the $dist variable with the path to your release.

The script will deploy to C:\Users\peek.

$ver = "#.#.#"
$dist = "C:\Users\peek\Downloads\"
PowerShell.exe -ExecutionPolicy Bypass -File deploy_nativescript_app_win.ps1 $ver $dist

The NativeScript App dependencies are now deployed.



What Next?

Refer back to the How to Use Peek Documentation guide to see which document to follow next.