Preview feature
Binary archives are currently a preview feature and may be enabled only on
selected environments. Behaviour and command flags may change before general
availability.
dv archive command provides the same workflow, natively and without Perforce:
- a programmer or a build machine compiles the editor and publishes the binaries against a specific commit.
- Anyone fetches the binaries and gets a ready-to-run editor - no local compile.
How it maps to UGS
Prerequisites
- Diversion installed and signed in on both the build machine and the team machines. See the Quickstart if you have not set this up.
- The Unreal project tracked as a Diversion repository.
- A clean workspace on the build machine when publishing (no uncommitted changes) - the archive is bound to the exact commit you are on.
What to put in the archive
For a typical Unreal project, the compiled output that other team members need lives in:Binaries/- the project’s compiled modulesPlugins/**/Binaries/- compiled plugin modules- (For a source-built engine)
Engine/Binaries/andEngine/Plugins/**/Binaries/
Binaries/ and Plugins/.
Keep binaries out of the committed tree
Add the binary output directories to your .dvignore
so they are not synced as ordinary workspace files. Archives are the
distribution channel for them; committing them as well would defeat the
purpose and bloat the repo.
Publishing a build
On the build machine, after a successful compile and with the workspace checked out at the commit you want to publish against:1
Zip the compiled output
Create a single zip containing the binary folders you want to distribute. The internal layout of the zip is up to you - you map it to destinations in the next step. For example, a zip whose root contains
Binaries/ and Plugins/ folders.2
Publish the archive against the current commit
engine-binariesis the archive name your team will fetch by.- The zip path must be absolute.
- Each
<dst>=<src>maps a folder inside the zip (<src>) to a destination relative to the workspace root (<dst>). Use forward slashes for<src>even on Windows.
Published 'engine-binaries' from <commit> (sha=...).Binaries/Plugins folders are already at the locations you want them unpacked to, the mapping is just Binaries/=Binaries/ Plugins/=Plugins/. To unpack the whole zip into the workspace root instead, pass a single destination with no =src:
You cannot publish the same archive name against the same commit twice. If you
produce a new build for a commit that already has
engine-binaries, publish
it under a different name (for example engine-binaries-hotfix).Fetching a build
On a team member’s machine:1
Make sure the destinations are empty
Every destination the archive unpacks into must be absent or empty before fetching. If you previously built locally, clear the old
Binaries/ and Plugins/ output first - otherwise the fetch is rejected and nothing is written.2
Fetch the archive
Automating with a build machine / CI
The natural setup is to publish from CI (or a dedicated build machine) on every change to engine or game C++:- CI checks out the latest commit on the target branch and builds the editor.
- CI zips the binary output and runs
dv archive publish engine-binaries <zip> ...while checked out at that commit. - Team members run
dv archive fetch engine-binaries --commit <commit>.
Related
dv archivecommand reference - full flag and behaviour details- .dvignore - keep build output out of the synced tree
- Unreal Engine Plugin - source control inside the editor

