Skip to content
Flávio Monteiro edited this page Sep 1, 2017 · 4 revisions

PackageInfo.json includes some information about OpenSpades package (not just a program!) and is used during automatic update check introduced in 0.1.1.

This file is mandatory since 0.1.1 and OpenSpades fails to launch without one

Example

PackageInfo.json from OpenSpades 0.1.1 source code distribution is shown below.

{
    "Version": [0, 1, 1, 4],
    "VersionText": "0.1.1",
    "UpdateFeed": {
        "Type": "Standard",
        "Platform": "SourceCode",
        "URL": "http://openspades.yvt.jp/api/version.json"
    }
}

TODO

The following example shows a PackageInfo.json without an update channel information.

{
    "Version": [0, 1, 1, 4],
    "VersionText": "0.1.1",
    "UpdateFeed": null
}

In this case, a message like "automatic update check is unavailable" will be shown to users.

Version

[major, minor, revision, build]

Standard Scheme for Offical Releases

build = 0 - pre-release version.

build >= 4 - offical release version.

Known previous bugs

  • 0.1.1b: Error message displayed when PackageInfo.json is missing is too obscure (#582)