# Tauri Sidecar Binaries

This directory holds native binaries that are bundled with the ReBreak Magic app.

## `supervise-magic`

Go binary that puts an iPhone/iPad into supervised mode without erasing data.

### Build

```bash
cd ../../ops/mdm/supervise-magic

# macOS (Apple Silicon)
make build-arm64

# macOS (Intel)
make build-amd64

# Windows (x86_64)
make build-windows-amd64
```

### Naming convention for Tauri

Tauri expects sidecar binaries in this directory with the following naming pattern:

```
supervise-magic-<target-triple>[.exe]
```

Common target triples:
- `aarch64-apple-darwin` (Apple Silicon)
- `x86_64-apple-darwin` (Intel Mac)
- `x86_64-pc-windows-msvc` (Windows)

After building, copy or symlink the binary into this directory with the correct target-triple name.

Example:
```bash
cp ops/mdm/supervise-magic/bin/supervise-magic-darwin-arm64 \
   apps/rebreak-magic/src-tauri/binaries/supervise-magic-aarch64-apple-darwin
```

Tauri will bundle the matching binary at build time.
