1 title: Package Configuration and Releases Guide
5 ContentDB will read configuration files in your package when doing a number of
6 tasks, including package and release creation.
7 This page details the ways in which you can use this to your advantage.
11 Every type of content can have a `.conf` file that contains the metadata.
13 The filename of the `.conf` file depends on the content type:
15 * `mod.conf` for mods.
16 * `modpack.conf` for mod packs.
17 * `game.conf` for games.
18 * `texture_pack.conf` for texture packs.
20 The `.conf` uses a key-value format, separated using equals. Here's a simple example:
23 description = A short description to show in the client.
25 ContentDB understands the following information:
27 * `description` - A short description to show in the client.
28 * `depends` - Comma-separated hard dependencies.
29 * `optional_depends` - Comma-separated soft dependencies.
30 * `min_minetest_version` - The minimum Minetest version this runs on.
31 * `max_minetest_version` - The maximum Minetest version this runs on.
35 * `name` - the mod technical name.
37 ## Controlling Release Creation
39 ### Git Releases and Submodules
41 ContentDB can automatically create releases from a git repository.
42 It will include submodules in the resulting archive.
44 ### Automatic Release Creation
46 The preferred way is to use [webhooks from GitLab or GitHub](/help/release_webhooks/).
47 You can also use the [API](/help/api/) to create releases.
49 ### Min and Max Minetest Versions
51 When creating a release, the `.conf` file will be read to determine what Minetest
52 versions the release supports. If the `.conf` doesn't specify, then it is assumed
53 that is supports all versions.
55 This happens when you create a release via the ContentDB web interface, the
56 [API](/help/api/), or using a [GitLab/GitHub webhook](/help/release_webhooks/).
60 When using git to create releases,
61 you can exclude files from a release by using [gitattributes](https://git-scm.com/docs/gitattributes):
69 This will prevent any files from being included if they:
72 * or are named `sources` or are inside any directory named `sources`.
73 * or have an extension of "zip".