# tools/

| 文件 | 用途 | 依赖 |
|---|---|---|
| `liter8` | 主程序（40 MB，含 capstone） | macOS 14+ |
| `usbliter8ctl` | pwned DFU 里发 `CUSTOM_BOOT` | python3 + pyusb |
| `idevicerestore` | erase restore | `brew install libimobiledevice libirecovery libusbmuxd libplist libtatsu libzip` |
| `ldid_macosx_arm64` | 重签 | 无 |
| `gtar` | 打包 rootfs | 无 |
| `sshpass` | 免交互 ssh | 无 |

`idevicerestore` 是在本机从源码编的，链接的是 Homebrew 的 dylib：

```
/opt/homebrew/opt/{libirecovery,libimobiledevice,libusbmuxd,
                   libimobiledevice-glue,libtatsu,libplist,libzip}
```

换机器要么装齐这些 formula，要么自己重编：

```sh
git clone https://github.com/libimobiledevice/idevicerestore
cd idevicerestore && ./autogen.sh && make -j8
```

`liter8` 可用 `liter8 preflight` 自检所有宿主工具是否齐备。
