Skip to content

Window .json

zodern edited this page Dec 17, 2014 · 1 revision

This is based on silk v.0.3 which is not released yet.

All apps need a window.json

Example

{
  "title": "Window Title / name",
  "url": "url to main html page",
  "icon": "url to icon",
  "multipleWindows": true or false
  "bower_dependencies": {
    "name": "version or 'latest'"
   },
  "npm_dependencies": {
     "name": "version or '*'"
  },
  "opens": [
    "text/plain",
    "*"
  ]
  "remote" : {
    "enabled": true,
    "fix-url": true
  }
}

Explanation

title: Required String. Currently used as the name of the app. Also the initial title of any new windows.

url: Required String. Url to main html page. If it doesn't have a client app, set it as headless. If you let Silk handle the public server for you, it is best to have a relative url so the app will work remotely.
Example urls:

/fileExplorer/index.html

https://bing.com

headless

//localhost:8000/

icon: Required String. Url to app icon.

multipleWindows: Boolean. If true, every time the user clicks on the app in the app menu it will open an additional window.

bower_dependencies: Object. Names and versions of required bower dependencies. They are installed the first time Silk is started after installing the app.

npm_dependencies: Object. Names and versions of required bower dependencies. They are installed the first time Silk is started after installing the app. If any version of the dependency is already installed, it is not updated or down graded.

Home

Contributing to Silk

Building Apps

Using Silk

Clone this wiki locally