> ## 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.

# Launcher skin

> Develop, debug and package your launcher with the DirectGVR launcher skin template.

The launcher skin template downloads, updates and repairs your games and applications. It's a React app in the `skins` folder of your release package. Its configuration, workflows and localization files are in the `public` folder.

![Launcher template showing download progress, release notes and a news carousel](https://mintcdn.com/directgvr/3pQ-TKp0IPKbsPvU/images/launcher-skin/download.png?fit=max\&auto=format\&n=3pQ-TKp0IPKbsPvU\&q=85\&s=5c97b405dbcdef4c3640df8374627226)

The launcher template downloading a sample game

## Features

* Release notes feed and news carousel
* End user license agreement (EULA)
* Choice of install folder
* Download performance graph and rate limiting
* REST and OAuth authentication
* Proxy and web authentication
* Storage decryption key authentication
* System tray context menu
* Light and dark window themes
* Localization
* Custom JavaScript workflow tasks

## Requirements

* DIRECT 6.1 or newer
* Node 24

## Run the skin while you develop

1. Use Node 24:

   ```bash theme={null}
   nvm install 24
   nvm use 24
   ```

2. Install the packages:

   ```bash theme={null}
   corepack enable
   pnpm install
   ```

3. Start the web server:

   ```bash theme={null}
   pnpm run start
   ```

4. Start the DirectGVR client, pointing it at the web server and the skin's `public` folder, where `app.yaml` is:

   ```bash theme={null}
   host.exe --devserver=http://127.0.0.1:3005/ --skin=c:\work\source\launcher\public\ --debugfile --window --disablesecurity --cef --devtools --disable-selfupdate
   ```

To debug the skin in Visual Studio Code, see [Debug the CEF client with VS Code](https://docs.directgvr.com/troubleshooting/debug-with-vscode.md).

## Package the skin

1. Build a production version:

   ```bash theme={null}
   pnpm run build
   ```

2. Pass the generated `build` folder to [builder.py](https://docs.directgvr.com/release-automation/builder-script.md) as `--skin_directory`.

## Files in the public folder

| File | What it's for |
| - | - |
| `app.yaml` | Host and skin configuration. See [Host configuration](https://docs.directgvr.com/reference/client-skin-system/host-configuration.md) and the options below. |
| `main.yaml` | Window configuration |
| `workflow.yaml` | The tasks that install, update, repair and launch your game |
| `selfupdate.yaml` | The tasks that update the launcher itself. See [Set up launcher self-update](https://docs.directgvr.com/launcher-design/self-update.md). |
| `locale/` | Localization strings |
| `eula/` | End user license agreement text |

## App config options

The launcher skin reads these options from `app.yaml`, in addition to the [host options](https://docs.directgvr.com/reference/client-skin-system/host-configuration.md):

| Name | Type | Description | Default |
| - | - | - | - |
| `allowSelfUpdate` | boolean | Allow the launcher to update itself. | true |
| `autoSelfUpdate` | boolean | Update the launcher without asking the player. | false |
| `autoInstall` | boolean | Install apps without asking the player or prompting for a folder. Define `{installDirectory}` in the workflow. Uninstalling isn't supported with this option. | false |
| `configPath` | string | Where to store the skin's settings. | `{localStorage}/{productType}.json` |
| `newsFeed` | string | URL of an RSS, Atom or JSON feed for the news carousel. Items without an image show a placeholder. Without it, the carousel isn't shown. | |
| `releaseNotesFeed` | string | URL of an RSS, Atom or JSON feed for the release notes area. Without it, release notes aren't shown. | |
| `showEulaScreen` | boolean | Show the EULA screen. | false |
| `updateInterval` | number | Seconds to wait between update checks. `-1` turns off periodic checks. | |
| `useOAuth` | boolean | Show the OAuth sign-in components. See [Add OAuth2 sign-in](https://docs.directgvr.com/launcher-design/oauth2-sign-in.md). | false |

## Command line

| Argument | Description |
| - | - |
| `--disable-selfupdate` | Turns off the launcher's self-update checks. Useful while you develop. |

For arguments every client supports, see [Core command line](https://docs.directgvr.com/reference/client-skin-system/core-command-line.md) and [Host command line](https://docs.directgvr.com/reference/client-skin-system/host-command-line.md).

## Set up your game's repository

Set your repository, delivery URL and executables in the `load` task of `public/workflow.yaml`:

```yaml workflow.yaml theme={null}
load:
  type: macro
  keyValuePairs:
    repository: mygame-{systemShortName}
    repositoryTitle: My Game
    appName: MyGame.app
    environment: production
    aliasUrl: https://cdn.example.com/game/
    executableName-win: bin/mygame.exe
    executableName-mac: MyGame.app/Contents/MacOS/mygame
    executableName-linux: bin/mygame
    repositoryLauncher: game-launcher
    repositoryName: "{repository}.{environment}"
    repositoryMetafile: "{repositoryName}.json"
    repositoryAliasUrl: "{aliasUrl}{repository}/alias.json"
    repositoryCatalogUrl: "{aliasUrl}{repository}/catalog/"
    metafileDirectory: "{localStorage}"
```

`environment` must match the environment you [promoted the release](https://docs.directgvr.com/release-automation/environments-and-promotion.md) to. For more than one repository, see [Configure the launcher to download your repositories](https://docs.directgvr.com/launcher-design/download-repositories.md).

## Show a system notification

The `systemNotify` task shows a notification in the system tray:

| Argument | Type | Description | Default |
| - | - | - | - |
| `message` | string | Notification message | |
| `caption` | string | Notification title | `Host` |
| `icon` | string | `info`, `warning` or `error` | `info` |

```yaml theme={null}
showAllDoneNotification:
  type: systemNotify
  icon: info
  message: UI_Done
```

## Related

* [Set up launcher self-update](https://docs.directgvr.com/launcher-design/self-update.md)
* [Installer skin](https://docs.directgvr.com/launcher-design/installer-skin.md)
* [Tasks](https://docs.directgvr.com/reference/client-workflow-engine/tasks.md)


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