packageinfo.json

packageinfo.json file defines the contents of a package. A package contains one application and zero or more services.

Note
packageinfo.json is generated automatically during the packaging process when you execute ares-package command of Command-Line Interface (CLI). While the webOS Open Source Edition is running, appinstalld service references the file to retrieve the app information and list of services included in the package.

Schema

{
    "app"                      : string,
    "id"                       : string,
    "loc_name"                 : string,
    "package_format_version"   : number,
    "vendor"                   : string,
    "version"                  : string,
    "services"                 : string array
}

Properties

PropertyRequiredTypeDescription

app

Required

string

Application ID.

id

Required

string

Package ID.

loc_name

Required

string

Localizable package name.

package_format_version

Required

number

Packaging format version, currently, "2".

vendor

Required

string

Vendor name.

version

Required

string

Package version.

services

Optional

string array

Services packaged with the app.

Example

{
  "app": "com.webos.app.testapp",
  "id": "com.webos.testapp",
  "loc_name": "webOS Open Source Edition Demo",
  "package_format_version": 2,
  "vendor": "My Company",
  "version": "1.0.0",
  "services": ["com.webos.testapp.service"]
}

Contents