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

Capture the public startup document and assets for one WebView platform.

    mix fow.bundle.prepare --env android-dev --platform android

Run from the Phoenix project with the selected website reachable. Output goes to `.fow/<env>/bundles/<platform>/`. Use `--platform apple` for the desktop generator, or `--platform ios` for Mob on iOS. Move an existing bundle aside or choose another `--output`. The macOS shortcut `mix fow.desktop` already prepares its bundle.

## How it fits

This is a lower-level step. For macOS, `mix fow.desktop` calls `FogOfWar.Wrapper.NativeBundle.run!/5` itself. For mobile, run this task before `mix fow.gen.mobile`, once per selected platform.

# `run`

---

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