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

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# [arch.arm64]: an ARM64 build

> Name the ARM64 files and install window program so bach build writes an ARM64 setup file next to the x64 one and lists both in the update feed.

The main build is for x64 computers (and runs on Windows on ARM through emulation). `[arch.arm64]` adds a native ARM64 build. It's the only extra architecture.

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[files]
source = "build/x64"

[arch.arm64]
source = "build/arm64"
exclude = ["*.pdb"]
runtime = "tools/arm64/bach-setup.exe"
```

| Setting | Required | Meaning |
| - | - | - |
| `source` | yes | Folder with the ARM64 files |
| `exclude` | no | Replaces `files.exclude` for this folder |
| `runtime` | no | ARM64 `bach-setup.exe`, relative to `bach.toml`. Or pass `--runtime-arm64`, or set `BACH_RUNTIME_ARM64`. |

The ARM64 `bach-setup.exe` is in `bach-<version>-windows-arm64.zip` on each [release](https://github.com/usebach/bach/releases). Bach refuses a program that isn't ARM64. `--x64-only` skips the ARM64 build.

## What you get

* `Hello-Setup-1.4.0.exe` and `Hello-Setup-1.4.0-arm64.exe`, with the same app id and version.
* With `[updates]`, one `latest.json`: the x64 file as the main entry, plus `arch.arm64` with its own link, checksum, size and signature.
* Each installed copy updates with its own architecture. The online installer asks Windows which one to download. If the ARM64 entry is unusable, the x64 file is used.
* When building files separately, list both with `bach feed <x64 file> --arm64 <arm64 file>`.


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