Triple-C is a Tauri v2 desktop application with a React/TypeScript frontend and a Rust backend. This guide covers building the app from source on Linux, macOS, and Windows.
For a universal binary (recommended for distribution):
```bash
npx tauri build --target universal-apple-darwin
```
For the current architecture only (faster, for local development):
```bash
npx tauri build
```
Build artifacts are located in `app/src-tauri/target/universal-apple-darwin/release/bundle/` (or `target/release/bundle/` for single-arch builds):
| Format | Path |
|--------|------|
| DMG | `dmg/*.dmg` |
| macOS App | `macos/*.app` |
| macOS App (compressed) | `macos/*.app.tar.gz` |
> **Note:** The app is not signed or notarized. On first launch, macOS Gatekeeper may block it. Right-click the app and select "Open" to bypass, or remove the quarantine attribute: `xattr -cr /Applications/Triple-C.app`
- **Visual Studio Build Tools** or **Visual Studio** with the "Desktop development with C++" workload — https://visualstudio.microsoft.com/visual-cpp-build-tools/
- **WebView2** — pre-installed on Windows 10 (1803+) and Windows 11. If missing, download the Evergreen Bootstrapper from https://developer.microsoft.com/en-us/microsoft-edge/webview2/
### 2. Install frontend dependencies
```powershell
cd app
npm ci
```
### 3. Build
```powershell
npx tauri build
```
Build artifacts are located in `app\src-tauri\target\release\bundle\`:
| Format | Path |
|--------|-------------------|
| MSI | `msi\*.msi` |
| NSIS | `nsis\*.exe` |
## Development Mode
To run the app in development mode with hot-reload:
```bash
cd app
npm ci # if not already done
npx tauri dev
```
## Container Image
The sandbox container image (used at runtime by the app) is built automatically by CI when files under `container/` change. To build it locally: