Skip to main content
Sometimes you want the launcher to download from a different place depending on the player’s locale, for example a dedicated CDN for players in China. This page uses workflow logic to check a separate URL when the operating system language is Chinese, and a global URL otherwise. You can also do this with separate launchers for China and the rest of the world, or with CDN redirection.

Requirements

  • Your releases, including the alias and catalog files, are deployed or copied to a CDN that serves players in China.
  • The launcher allows that CDN’s domains. See Host configuration.

Set up the workflow

This workflow uses the if core expandable string to check whether the operating system language is Chinese (zh). If it is, aliasUrl expands to the China CDN; otherwise it uses the global CDN.
workflow.json
The full alias and catalog URLs are built in repositoryAliasUrl and repositoryCatalogUrl. If your workflow builds them differently, make sure each URL uses the if logic.