packageinfo.json

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

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, the 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

Property Required Type Description

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"]
}
Except as noted, this content is licensed under Creative Commons Attribution 4.0 and sample code is licensed under Apache License 2.0.