> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Prepare a macOS DIRECT 6 or 7 launcher to update to DIRECT 8

> Ship an interim macOS launcher that can self-update to DIRECT 8 and route Intel and Apple silicon Macs to separate repositories.

This page shows how to set up a macOS launcher built with DIRECT 6 or 7 so it can update itself to DIRECT 8. DIRECT 8 uses CEF 7559 (`144.0.7559.231`), which has macOS symlinks that need a specific setting. You also ship an interim build that detects the CPU architecture (Intel or Apple silicon) and uses a separate repository for each.

## Update the self-update workflow

The self-update workflow should have separate task chains to download and then apply the new launcher files. In the apply chain, the `repositorySync` task must have `cleanup: false`:

```yaml selfupdate.yaml theme={null}
applyUpdate:
  type: repositorySync
  repository: "{repositoryNameLauncher}"
  catalog: "{repositoryCatalogUrlLauncher}"
  alias: "{repositoryAliasUrlLauncher}"
  title: "{repositoryTitleLauncher}"
  metafile: "{pathJoin:{localStorage},{repositoryNameLauncher}.json}"
  metafileSave: true
  delta: false
  inplace: true
  cleanup: false
  autoMask: false
  local:
    type: file
    path: "{env:SU_TARGET_DIR}"
  pending:
    type: filePiece
    path: "{updateDirectory}"
  pieceFormat: "{targetDigest}.solidpiece"
  progressWeight: 0.8
```

Leave the other properties as they are, including `delta: false`, `inplace: true` and `autoMask: false`.

## Detect Intel or Apple silicon

This macro returns the Mac's CPU architecture:

```text theme={null}
{if:{int64Compare:{indexOf:Apple,{cpuVendor}},>=,0},macarm64,mac64}
```

* Intel Macs get `mac64`.
* Apple silicon Macs get `macarm64`.

Use it to give each architecture its own repository, for example `launcher-mac64` and `launcher-macarm64`.

## Build the interim launcher

The interim build needs:

* A self-update workflow that can update from the DIRECT 6 or 7 CEF to the DIRECT 8 CEF.
* Logic that routes your existing macOS launcher repository to two new repositories by architecture:
  * Intel: `launcher-mac` to `launcher-mac64`
  * Apple silicon: `launcher-mac` to `launcher-macarm64`

> [!WARNING]
>
> Use new repositories for both architectures. This makes sure every existing player goes through the interim build that can update to DIRECT 8, whenever they update.

## Build, deploy and test

Build, deploy and test the interim launcher in your existing DIRECT 6 or 7 pipeline. What players see:

* Everyone: the existing launcher updates itself to the interim build.
* Apple silicon: the interim launcher checks for self-updates in `launcher-macarm64`.
* Intel: the interim launcher checks for self-updates in `launcher-mac64`.

The interim release IDs can be the same for both, unless you have other architecture-specific changes.

Test that:

1. The existing launcher updates to the interim version (version A).
2. The interim version can update itself with no local metafile.
3. Recommended: a second interim iteration (version B) with the same changes, and version A updates to version B.

## Related

* [Set up launcher self-update](https://docs.directgvr.com/launcher-design/self-update.md)
* [Core expandable strings](https://docs.directgvr.com/reference/client-workflow-engine/core-expandable-strings.md)
* [Host requirements](https://docs.directgvr.com/reference/client-skin-system/host-requirements.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.