Provision scripts allow you to customize your installation automatically upon installation from installer app. For example, if you wanted to install a provider package by default after every installation, you may achieve that using provision scripts.
You may also want to search online for
Syncler provisioned installer
to find installers that has been already customized for you.
Please note that provision script is automatically executed only if the app was not previously installed on device. However you can manually run the provision script by clicking the provision button on the installer app.
It is a combination of multiple commands. Each line may contain only one command with arugments.
An example of a provision script that installs one express package and one kosmos package would be the following -
install-package 1 https://some-website.com/url-to-package.json
install-package 2 https://some-website.com/url-to-package.js
Please see all the available commands below.
Installs a package.
Syntax: install-package [package-type(1=express,2=kosmos)] [package-url]
Example: install-package 1 https://....
Sets provider repository url to a json file that lists provider packages. This list will be browsable in app and will be available for one click install under Settings > Provider packages > My respository
.
Syntax: set-provider-repository-url [repository-url]
Example: set-provider-repository-url https://.....json
A sample json file would be
[
{
"title": "Express 1",
"type": 1,
"description": "This is a sample express package.",
"repositoryUrl": "https://github.com/...",
"packageUrl": "http://.....json"
},
{
"title": "Express 2",
"type": 1,
"description": "This is a sample express package.",
"repositoryUrl": "https://github.com/...",
"packageUrl": "http://.....json"
},
{
"title": "Kosmos",
"type": 2,
"description": "This is a sample kosmos package.",
"repositoryUrl": "https://github.com/...",
"packageUrl": "http://.....js"
}
]