hi-res-paintings and nasaimages, promoted to an environment named stage.
These examples use
workflow.json. The current launcher template uses public/workflow.yaml; the tasks are the same in either format. See Use YAML configuration and workflow files.Organize your macros
Split macros into general ones and a set per repository. Theload task always runs first, so load the macros there. See Tasks.
workflow.json
Set the general macros
aliasUrl: the folder on your CDN where you deploy your repositories.installRoot: where repositories are installed on the player’s machine.environment: the environment you promoted the releases to.
Set the repository macros
Each repository gets its own set. Copy the set for each additional repository.repository: the repository name you used when deploying.repositoryTitle: the name shown in the launcher while the repository syncs.installDirectory: where this repository’s files go on the player’s machine, underinstallRoot.repositoryName: the repository and environment names combined.repositoryMetafile: the metafile name saved on the player’s machine. The launcher uses it like a version file to check for updates.repositoryAliasUrl: the URL of this repository’salias.json.
Add every repository to the update task
The reservedupdate task runs at every update interval. Make it a progress task so the launcher shows one progress bar for all repositories, and list each repository’s check:
update and install are listed in taskChainParameter because the check tasks route to other tasks through them. See Tasks and Progress.
Check each repository
ArepositoryCheck task compares the ID in the local metafile, if there is one, with the required ID in the alias file:
updateElevatedCheck, which checks whether the install folder needs administrator rights (for example C:\Program Files\). If it does, the launcher shows a User Account Control prompt.
Sync each repository
ArepositorySync task downloads the files for a first install or an update:
updateSyncTwo with the Two macros for the second repository.
Repair each repository
A repair task is arepositorySync task with "repair": true. The launcher scans the local files and syncs only those that don’t match.
repair progress task, which checks for elevation first. In the launcher template, it runs when the player clicks Repair.

