Complete guide to get Trinity running on Windows.
- Windows 10 21H2 (build 19044) or later
- Windows 11 (all versions)
- Windows Server 2022 or later
- PowerShell 7.0+ or Windows Terminal
- Git for Windows — https://git-scm.com/download/win
- Visual Studio Build Tools 2022 — for some native builds
- Windows Terminal — Recommended for better experience
- Scoop — Package manager
# Install Scoop if not installed
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
# Install Trinity
scoop bucket add ghashtag https://github.com/gHashTag/scoop.git
scoop install trinity
# Verify
tri --version- Download from: https://github.com/gHashTag/trinity/releases
- Extract to:
C:\trinity - Add to PATH:
[System.Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\trinity\bin", "User")
- Restart terminal
# Clone repository
git clone https://github.com/gHashTag/trinity.git
cd trinity
# Download Zig 0.15.x
# Visit: https://ziglang.org/download/
# Download: zig-windows-x86_64-0.15.0.zip
# Extract to: C:\zig
# Add to PATH (PowerShell)
$env:Path = "C:\zig;C:\zig\zig-windows-x86_64-0.15.0;" + $env:Path
# Build TRI CLI
.\zig\zig-windows-x86_64-0.15.0\zig.exe build tri
# Run
.\zig-out\bin\tri.exe --versionRecommended for full compatibility with Linux tools.
# Enable WSL2
wsl --install
# Download and build inside WSL Ubuntu
wsl
cd ~
git clone https://github.com/gHashTag/trinity.git
cd trinity
# Follow Linux quick start guide# Install Docker Desktop
# Download: https://www.docker.com/products/docker-desktop/
# Pull Trinity image
docker pull ghcr.io/ghashtag/trinity:latest
# Run
docker run -it --rm ghcr.io/ghashtag/trinity:latest --version# Show sacred constants
tri constants
# Interactive REPL
tri
# Run tests (requires WSL or proper setup)
zig build test- QMTech XC7A100T FPGA board
- FTDI JTAG cable
- USB drivers
- Download FTDI drivers: https://ftdichip.com/Drivers/VCP.htm
- Install "CDM" (virtual COM port) drivers
- Install "D2XX" drivers for direct access
# Using Scoop
scoop install openfpgaloader fxload
# Or download from GitHub
# openFPGALoader: https://github.com/trabucay/openFPGALoader/releases
# fxload: Included with FTDI driversPowerShell:
# CRITICAL: Switch JTAG cable to JTAG mode first
fxload -t fx2 -I .\fpga\openxc7-synth\xc7a-xc7s-ftdi.hex -d 0x0013
# Now flash
tri fpga flashOr using openFPGALoader directly:
openFPGALoader.exe --cable ft232 --bitstream fpga\openxc7-synth\hslm_full_top.bit# Add to PATH (user scope)
$env:Path = "C:\trinity\bin;" + $env:Path
# Set permanently
[System.Environment]::SetEnvironmentVariable("Path", $env:Path, "User")
# Restart terminal for changes to take effect# Set execution policy for current user
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser# Install Visual Studio Build Tools 2022
# Download: https://visualstudio.microsoft.com/downloads/
# Select "C++ build tools"Windows has 260 character path limit. Use WSL2 or move repo to short path like C:\tri.
# Check device manager for FTDI devices
# Ensure drivers are installed
# Try different USB port- Install VS Code: https://code.visualstudio.com/
- Install Zig extension:
code --install-extension ziglang.vscode-zig
- Configure
settings.json:{ "zig.zigPath": "C:\\zig\\zig-windows-x86_64-0.15.0\\zig.exe", "zig.formattingProvider": "zls", "terminal.integrated.defaultProfile.windows": "PowerShell" }
- Install CLion
- Install Zig plugin from Marketplace
- Configure Zig SDK path in Settings
- Set up build configuration
- Install Windows Terminal from Microsoft Store
- Configure profiles:
{
"profiles": {
"defaults": {
"fontFace": "Cascadia Code",
"fontSize": 12,
"colorScheme": "One Half Dark"
},
"list": [
{
"guid": "{574e775e-4f2a-5b96-accd-aa8442612089}",
"name": "Trinity",
"commandline": "tri.exe",
"icon": "C:\\trinity\\icon.ico",
"startingDirectory": "%USERPROFILE%\\trinity"
}
]
}
}Customize PowerShell profile for Trinity:
# Edit profile
notepad $PROFILE
# Add these lines
function tri { C:\tri\bin\tri.exe @args }
$env:Path = "C:\tri\bin;" + $env:Path
# Save and restart terminalTests require WSL2 or MinGW due to Zig limitations on Windows.
# Inside WSL Ubuntu
wsl
cd ~/trinity
zig build test# Install MinGW-w64
# Download: https://www.mingw-w64.org/
# Add to PATH
# Build tests
C:\mingw64\bin\zig.exe build tri- Read README.md for all commands
- Check CONTRIBUTING.md for development
- See docs/troubleshooting.md for issues
- Consider using WSL2 for full Linux compatibility
Last updated: 2026-03-24