Last active
June 27, 2026 15:43
-
-
Save FelikZ/f3318e2068c584f1ebd38229d97c199a to your computer and use it in GitHub Desktop.
Build WinTTY on windows 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: Developer Power Shell from MVC build tools (below) is required | |
| winget install Microsoft.DotNet.SDK.10 -v "10.0.202" | |
| winget install -e --id zig.zig -v "0.15.2" | |
| winget install Casey.Just | |
| :: Desktop development with C++ (Workload), .NET desktop build tools (Workload) | |
| :: https://visualstudio.microsoft.com/downloads/?q=Build%20Tools%20for%20Visual%20Studio#:~:text=Build%20Tools%20for%20Visual%20Studio | |
| :: Alternative to get win sdk | |
| :: https://learn.microsoft.com/en-us/windows/apps/windows-sdk/downloads | |
| rm -r .zig-cache | |
| rm -r "C:\Users\FelikZ\AppData\Local\zig" | |
| dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org | |
| dotnet nuget list source | |
| dotnet nuget locals all --clear | |
| dotnet restore windows/Ghostty.sln | |
| zig build -Dapp-runtime=none -Doptimize=ReleaseFast | |
| dotnet build-server shutdown | |
| dotnet build windows/Ghostty.sln /p:Platform=x64 -c Release | |
| cp zig-out/lib/ghostty.dll windows/Ghostty/bin/x64/Release/net10.0-windows10.0.19041.0/native/ | |
| cd windows/Ghostty/bin/x64/Release/net10.0-windows10.0.19041.0/native/ | |
| .\Wintty.exe | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment