addonscript-spec/docs/schema/manifest.md

82 lines
2.4 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": [],
2023-02-03 16:20:43 +01:00
"instance": false,
2023-04-10 16:10:08 +02:00
"use_builder": false,
2023-02-03 16:20:43 +01:00
"launch": {},
2021-07-18 12:32:57 +02:00
"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
2023-04-10 16:12:50 +02:00
that manifest, from which AddonScript implementations MAY check for updates for this addon. If [use_builder](#use_builder) is `true`,
2023-04-10 16:10:08 +02:00
this addon MUST have such a repository to provide API instances, which can be used to request the
[launch environment](../api/features/builder.md#build-launch-environment).
2022-09-10 16:56:51 +02:00
2023-02-03 16:20:43 +01:00
### instance
This is a boolean which specifies, if this addon is an [instance addon](../concepts/instance.md).
If this property is not present, it defaults to `false`.
2023-04-10 16:10:08 +02:00
### use_builder
This is a boolean which specifies, if this addon will use the [environment builder](../api/features/builder.md).
Only valid if [instance](#instance) is `true`.
If this property is not present, it defaults to `false`.
2023-02-03 16:20:43 +01:00
### launch
This is a [launch config object](launch.md) which can be used to modify the
inherited launch configuration of this instance.
Only available for [instance addons](../concepts/instance.md).
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.