addonscript-spec/docs/schema/manifest.md

62 lines
1.8 KiB
Markdown
Raw Normal View History

2022-08-31 16:11:10 +02:00
# Addon Manifest Object
2021-06-23 22:06:21 +02:00
2021-11-14 00:37:29 +01:00
```json
2021-06-23 22:06:21 +02:00
{
2021-07-18 12:32:57 +02:00
"addonscript": {},
"id": "myaddon",
2021-11-13 20:47:21 +01:00
"namespace": "com.example",
"version": "1.0.0",
2021-11-13 20:47:21 +01:00
"files": [],
"relations": [],
2022-09-03 21:23:53 +02:00
"flags": {},
2021-07-18 12:32:57 +02:00
"repositories": [],
"meta": {}
2021-06-23 22:06:21 +02:00
}
```
## Required properties
### addonscript
This is an [AddonScript object](addonscript.md) containing information about the version of AddonScript used in this file.
### id
2021-11-14 00:17:32 +01:00
This is the ID of the addon.
It MUST only contains lowercase alphanumeric characters and hyphens and SHOULD be written in the `kebab-case` format.
2021-11-13 20:47:21 +01:00
### version
2022-09-17 13:54:34 +02:00
This is the [AddonScript version number](../concepts/versioning.md#addonscript-version-numbers) of this version.
2021-06-23 22:06:21 +02:00
2022-08-04 16:53:33 +02:00
### namespace
This is the [canonical namespace](../concepts/namespaces.md#canonical-namespaces) of the addon.
2022-06-08 19:44:19 +02:00
### flags
2022-09-03 21:23:53 +02:00
This is an [flags object](flags.md) which contains [manifest flags](../concepts/flags.md#manifest-flags) for both sides for this manifest.
2022-06-08 19:44:19 +02:00
2021-06-23 22:06:21 +02:00
## Optional properties
2021-11-13 20:47:21 +01:00
### files
2021-06-23 22:06:21 +02:00
2021-11-14 00:17:32 +01:00
This is an array of [file objects](file.md) including the files belonging to this addon.
2021-06-23 22:06:21 +02:00
2021-11-13 20:47:21 +01:00
### relations
2021-11-14 00:17:32 +01:00
This is an array of [relation objects](relation.md) which represent addons in relation to this one.
2021-06-23 22:06:21 +02:00
2021-11-13 20:47:21 +01:00
### repositories
This is an array of [repository objects](repository.md). Each repository object defines one repository from which files or
2022-09-23 18:33:14 +02:00
addons can be retrieved. Each AddonScript manifest SHOULD have a repository for the [canonical namespace](#namespace) of
that manifest, from which AddonScript implementations MAY check for updates for this addon. If this addon has the `env`
[manifest flag](../concepts/flags.md#manifest-flags), it MUST have such a repository to provide API instances, which can
be used to request the [launch environment](../api/features/env.md#build-launch-environment).
2022-09-10 16:56:51 +02:00
2021-06-23 22:06:21 +02:00
### meta
2021-11-14 00:17:32 +01:00
This is a [meta object](meta.md) containing metadata about the addon.