# `mix fow.gen.desktop`
[🔗](https://github.com/mrluc/fow/blob/main/lib/mix/tasks/fow.gen.desktop.ex#L1)

Generate desktop source when you want to build separately or customize the host.

    mix fow.gen.desktop --env dev

Prepare the Apple bundle first with `mix fow.bundle.prepare --env dev --platform apple`. Then build with `mix fow.build.desktop --env dev`. Use `--output` to keep the project outside the generated directory. The default input is `.fow/<env>/bundles/apple`; use `--bundle-dir` to override it. For the ordinary macOS workflow, use `mix fow.desktop`.

## How it fits

This is the generation step in the macOS workflow. `mix fow.desktop` calls the same `FogOfWar.Wrapper.Generator.run!/4` function directly, rather than invoking this task. Use this task when you want the source project as a separate step.

# `run`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
