Documentation
¶
Overview ¶
Command conptyfetch gets the pseudoconsole the Windows app carries for its terminal tabs: conpty.dll and OpenConsole.exe from Microsoft's Microsoft.Windows.Console.ConPTY NuGet package (MIT, https://github.com/microsoft/terminal), the version and hash pinned below. It checks the package against NuGet's published SHA-512 before taking anything out of it, and writes, into -out:
conpty.dll the package's for -arch x64/OpenConsole.exe the console host conpty.dll starts on an x64 machine arm64/OpenConsole.exe … and on an ARM64 one (an amd64 app runs on both) LICENSE-conpty.txt the licence notice
That is the layout the package's own build files make, and the one internal/core/pty looks for in the "conpty" folder beside the app.
go run ./internal/devtools/conptyfetch -arch amd64 -out dist/windows/tmp/amd64/conpty
-nupkg names a copy of the package: used when it is there (and checked all the same), written there after a download otherwise, so one build fetches it once.