An archive manifest (.archivemanifest) describes how your game’s resources are divided into archives. It contains packages, which group resources for delivery, and rules that determine which files and dependencies belong to each package.
Use an archive manifest to ship the content your game needs at startup with the application. You can then let players download additional episodes or seasonal events when they need them. This can reduce the initial download size and lets your game choose which optional content to download later on.
A package is a named group of runtime resources, with compression settings that determine how those resources are stored. Defold automatically determines the contents of the special Base package and includes it in the application bundle. You can use rules to choose the contents of other packages and output them separately:
| Package | Purpose |
|---|---|
| Base | Defold includes this package in the application bundle, so its content is available when the game starts. Keep startup content here, such as the main collection, loading screen, menus, and code that downloads other packages. |
| Other packages | Store content separately from the application. Use them for episode packs, assets shared by downloaded episodes, or seasonal events. ZIP packages can be downloaded and mounted at runtime. |
When separate packages are enabled during bundling, their selected resources are removed from Base. Other content reachable from the project’s build roots remains in Base. Resources required at startup always remain in Base, even if a rule also adds them to another package.
Use collection proxies to defer loading collections until their packages are available. A resource referenced directly by startup content may have to stay in Base. When you select an archive manifest, Defold determines package membership from its rules. Collection proxy Exclude flags do not determine package membership.
After your game downloads and mounts a package, Defold can access its resources. Your game must then load the collection with these resources through a proxy.
Each external package has an ordered list of rules. A rule has an Operation, either Add or Remove, and a Target, either Path or Package.
/. To select a folder’s contents, match the paths beneath it.For example:
| Path expression | Selection |
|---|---|
/episodes/00/episode[.]collection |
One collection source file. |
/episodes/00/.* |
All files under /episodes/00/, including subfolders. |
/episodes/0[0-9]/.* |
All files in episode folders 00 through 09. |
/events/halloween/.* |
All files under the Halloween event folder. |
These expressions use regular expression syntax. .* matches any sequence of characters, and [.] matches a literal dot. Each path matches source files. The resources Defold adds to a package depend on how it builds those files.
Defold source files, such as .collection, .go, .script, and .atlas, are processed by the build pipeline. During a build, Bob parses the selected source files, follows their resource references, and compiles them. Package selection gathers all runtime outputs produced for each source, including generated outputs, and the compiled outputs of its runtime dependencies.
For example, if you select a collection, Defold adds its compiled collection, referenced game objects, components, scripts, and other required resources. If you select an atlas, Defold adds its compiled atlas data and generated textures. A single source file can therefore add several output files to a package.
Dependencies can be outside the folder matched by the rule. For example, if you select /episodes/00/episode[.]collection, Defold can also include resources from /common/ when the collection references them. You do not need to list each dependency in another rule.
Files without a registered resource compiler, such as ordinary .txt or .json files, are added as-is. Their contents and resource paths are preserved. Bob does not parse their contents to discover resource dependencies.
For example, after your game mounts a package containing /episodes/00/description.txt, it can read the file at that path with sys.load_resource(). You only need to select the file with a rule. You do not also need to list it in project.custom_resources. Defold still applies the package’s compression settings to the file.
Defold processes each package’s rules from top to bottom:
A Remove rule only affects the current package. For clarity, it does not remove resources from the referenced package or delete project files. When you reference another package, Defold uses its final contents, regardless of its position in the Outline.
Suppose your game has many episodes and two seasonal events. Keep the startup menu and downloader in Base, put content shared by downloaded episodes and events under /common/, and give each episode or event its own folder.
You can compose the packages like this:
| Package | Rules in order |
|---|---|
common |
Add Path /common/.* |
episodes_00_09 |
Add Path /episodes/0[0-9]/.*, then Remove Package common |
episodes_10_19 |
Add Path /episodes/1[0-9]/.*, then Remove Package common |
halloween |
Add Path /events/halloween/.*, then Remove Package common |
winter |
Add Path /events/winter/.*, then Remove Package common |
For each episode or event package, Defold first adds the selected resources and their dependencies, including shared resources, and then removes the contents of common from that package, leaving that content in a separately downloadable package. The shared content remains available in the separate common package.
To play e.g. episode 07, download and mount common and episodes_00_09. For example, during Halloween, also download and mount halloween when its content is needed. Players do not need to download the other episode packs.
A resource can belong to several packages. Defold does not automatically assign a shared resource to one owner, so use Remove rules when you want to avoid duplicate content across packages.
You can also combine packages into a larger delivery unit. For example, add three Add Package rules to a holiday_bundle package and select common, episodes_00_09, and halloween. Defold combines their contents in holiday_bundle and includes each resource once. You can then offer a combined download alongside the smaller packages.
Your game chooses which packages to download and mount. If you remove shared content from an episode package, your game must also mount the shared package before loading that episode. Defold does not automatically download or mount packages based on external dependency metadata. Wait for successful mount callbacks before loading content. When the application restarts, add the required mounts again.
See Live update scripting for the runtime workflow.
For Path rules, use No matches to control what happens when a valid expression matches no files. You can select Warn (default), Error, or Ignore. Defold reports missing package references, reference cycles, and invalid expressions as errors.
Use the manifest’s Packages view to inspect Base and the other packages. Select a resource to see its source and contributing rules. Use Search resources in all packages to find the packages that contain it. The editor builds the preview from its dependency graph. For the exact compiled contents for your target platform, check a bundle report.
An archive manifest has two independent groups of named presets under Compression Types. Each external package selects a Container Compression preset and a File Compression preset. Packages can share presets.
The container determines the external package’s output format:
.zip file. Use it for packages you want to host, download, and mount with a zip: URI. ZIP compression applies to the entries stored in that container./ directory. Use it when your deployment tools need to process individual package files or assemble another delivery format. Folder adds no container compression.You can set the ZIP level from -1 to 9, with a default of 1. Set it to -1 to use the Java default and 0 to disable ZIP compression. Higher levels allow more compression work during packaging, so compare the resulting size and build time for your content.
Defold compresses each resource payload independently of the container:
1 to 12, with a default of 9.Some resources remain uncompressed when required by their compiler or when LZ4 does not reduce their size enough.
You can combine the two layers. For example, a ZIP container at level 0 can contain LZ4-compressed resources. You can also use ZIP compression with File Compression set to None. To use neither compression layer, choose Folder and None.
ZIP with LZ4 is the default. When resource payloads are already compressed, extra ZIP compression may provide little additional saving. Use a bundle report to compare final package sizes. Also measure packaging and loading costs on your target platform.
Base uses the application’s normal archive format, so it selects only a File Compression preset. With an archive manifest selected, its file compression presets replace project.compress_archive.
After you define named packages in the manifest, choose Bob’s output options to determine whether it should write them separately from the application:
| Selection | Bundle output |
|---|---|
| No package options | A self-contained application. The named packages’ content is included in Base, and no external packages are written. |
--all-packages |
The application with the manifest’s Base, plus every named package as a separate output. This flag takes no value. |
--package base |
Only the application with the manifest’s Base. External package content must be supplied separately at runtime. |
--package common --package episodes_00_09 |
Only the two selected packages. No application bundle is created. |
Use --all-packages when producing the application and all downloadable content together:
java -jar bob.jar --platform arm64-macos --all-packages \
--bundle-output bundle_output build bundle
Replace arm64-macos with your target platform. In the editor’s platform bundling dialog, Publish Live Update content enables this separation of Base and external packages.
Repeat --package when producing only selected packages:
java -jar bob.jar --platform arm64-macos \
--package common --package episodes_00_09 build bundle
Additional outputs for package dependencies are not automatically selected. Include every package you want to export, such as common when an episode package depends on it. Add --package base when you also want the application bundle. If you select a combined package such as holiday_bundle, all its combined contents will be written. The smaller packages referenced by its rules are not written.
The manifest’s Output Directory controls where external packages are written. The default is build/packages, and it is relative to the project root. ZIP packages produce files such as build/packages/episodes_00_09.zip. Folder packages produce directories such as build/packages/episodes_00_09/.
--bundle-output controls the application bundle’s destination separately. External packages are not automatically placed inside that application folder. Keep the package output directory outside the application directory that bundling recreates.
You can use package selection options with both build and bundle. When you run build, it compiles resources and saves their graph in game.graph.json. When you run bundle, it reads that graph and the compiled resources, and then applies the current manifest to create archives. Build alone does not create archives.
When running the commands separately, use matching platform, architectures, variant, and compiler settings. It does not compile changed or missing source files during bundle. Run build again after changing sources or selecting resources that were absent in the saved graph.
Each bundle invocation recreates the selected packages and preserves the outputs of other packages. Do not combine --all-packages with --package. You also cannot combine --package with --build-input or --build-input-file.
To check which resources ended up in each package, add --bundle-report-html bundle-report.html to the bundle command. You can also use the report to inspect compiled resource sizes and final archive sizes. This helps you check shared resources and compare compression presets. For information about compilation, use --build-report-html and --build-report-json.
Archive manifests replace the deprecated liveupdate.settings packaging workflow. Defold still supports the Legacy ZIP and Folder output formats. Built-in Amazon S3 publishing has been removed, so use your own deployment tools to upload the generated packages.
In this walkthrough, we create one downloadable archive for episodes 00-19. Keep each episode’s files in its own folder, from /episodes/00/ through /episodes/19/, and use collection proxies so your game can load each collection after its package is available. If you want to split the episodes into smaller packages or add seasonal content, use the composition rules described above.
Choose Archive Manifest in File ▸ New..., name it content, and create it.
In game.project, assign /content.archivemanifest to Archive → Manifest. Clear any explicit Live update → Settings selection; the two settings cannot be combined. In the manifest, keep the default Output Directory, build/packages.
Select package1 in the Outline and rename it episodes_00_19. Keep Container Compression on Zip and File Compression on LZ4 hc9.
Right-click the package and choose Add Rule. Name it episodes_00_19, keep Operation as Add and Target as Path, and set Path to /episodes/[01][0-9]/.*.
Select the package to review its compiled resources and dependencies in the Packages view. Use Search resources in all packages to check which packages contain a resource. Startup-required resources also remain in Base.
Choose Project ▸ Bundle ▸ ... for your platform. Enable Publish Live Update content, leave Contentless bundle off, click Create Bundle…, and choose an application output folder.
Defold creates the application with Base and writes a separate build/packages/episodes_00_19.zip. Upload the ZIP to your server. Your game can then download and mount it before loading an episode from the pack.
Test this workflow with the bundled application. When you build and run the game in the editor, Defold does not exclude the packaged content.