Install on Windows
This page installs the ztk program on Windows and checks that it opens a window.
From the release archive
Each release has ztk-VERSION-x86_64-windows.zip. The archive has ztk.exe, the README, and the licenses.
- Unpack the archive, for example to
%LOCALAPPDATA%\Programs\ztk. - Add that folder to the
Pathof your user. - Open a new terminal.
In PowerShell:
Expand-Archive ztk-VERSION-x86_64-windows.zip $env:LOCALAPPDATA\Programs
$dir = "$env:LOCALAPPDATA\Programs\ztk-VERSION-x86_64-windows"
[Environment]::SetEnvironmentVariable("Path", "$env:Path;$dir", "User")
From source
Install Zig 0.17.0. The build needs no other tool: the shaders compile at run time with the shader compiler of Windows.
git clone https://github.com/beetlebugorg/ztk
cd ztk
zig build -Doptimize=ReleaseFast
The program is zig-out\bin\ztk.exe. zig build with no -Doptimize makes a Debug program, with each safety check on.
Check the install
ztk version
ztk examples\platform-gallery.tcl
The second command needs the examples folder of the source. It opens the widget gallery. This check needs no window:
ztk --headless t.tcl
With a file t.tcl that has the two lines puts [expr {6 * 7}] and exit, the command prints 42.
The next page, Develop, runs your own script.