| # Factory Commands | |
| ## Windows portable build | |
| Open PowerShell as normal user on the factory PC: | |
| ```powershell | |
| cd X:\ | |
| powershell -ExecutionPolicy Bypass -File .\factory\powershell\Install-All.ps1 -BrandName "JackAILocal" | |
| ``` | |
| This builds the Rust router, installs backends, pulls models onto the drive, applies branding, generates hashes and runs preflight. | |
| ## Windows build without model pull | |
| ```powershell | |
| powershell -ExecutionPolicy Bypass -File .\factory\powershell\Install-All.ps1 -SkipModels | |
| ``` | |
| ## Linux boot disk build | |
| Run from a Linux factory machine: | |
| ```bash | |
| sudo ./linux/factory/prepare-linux-boot-disk.sh /dev/sdX | |
| ``` | |
| This destroys the target disk. | |