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

# Build your launcher

> Compile and sign a launcher with builder.py.

The `builder.py` script uses the DirectGVR Console tools to compile and sign a launcher: `launcher.exe` on Windows or `launcher.app` on macOS. You give it the paths to the sample launcher skin, the Chromium Embedded Framework (CEF) libraries and where to put the compiled launcher.

The sample skin downloads the `gameclient` repository from the `qa` environment you set up in the previous steps. It launches `notepad.exe`, which is in the sample source folder.

## About build\_windows.json

`build_windows.json` in `\samples\config\` gives the builder the details of the launcher it compiles:

```json theme={null}
{
  "target_os": "win64",
  "skin_directory": "../skins/launcher/",
  "launcher_path": "../run/ProductLauncher.exe",
  "cef_source_directory": "../cef/<cef-version>/win64/",
  "launcher_company": "Your Company Inc",
  "launcher_copyright": "2020",
  "launcher_product_name": "Product Name Launcher",
  "launcher_version": "1.2.3",
  "timestamp_service_url": "http://timestamp.digicert.com/#authenticode"
}
```

> [!NOTE]
>
> The relative paths only work if your command prompt is in the `\deploy\` folder and Python 3 is on your `PATH`. Otherwise, pass full paths as arguments or set them in the file.

## Run the build script

Add these arguments after `--config`, each separated by a space and starting with two dashes:

* `--skin_directory`: full path to the `\skins\launcher\` folder in the release package
* `--cef_source_directory`: full path to the `\cef\<cef-version>\win64\` folder in the release package, where `<cef-version>` is the CEF version folder (DIRECT 8 uses CEF 7559)
* `--launcher_path`: full path, including the file name, where you want the launcher compiled. For example, `<package>\output\GameLauncher.exe`.

1. Run the builder:

   ```bash theme={null}
   python.exe <package>\deploy\builder.py --config=<package>\samples\config\build_windows.json --skin_directory=<package>\skins\launcher\ --cef_source_directory=<package>\cef\<cef-version>\win64\ --launcher_path=<package>\output\gamelauncher.exe
   ```

The script writes these files to the folder you set in `launcher_path`:

* `gamelauncher.exe`: the compiled, signed launcher
* The CEF libraries and files the launcher needs to run

Next, [run your launcher](https://docs.directgvr.com/quick-start/run-launcher.md).


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