AMythicDev/zigverm
Version manager for the Zig Programming Language
zigverm is a version manager for the Zig programming Language. It lets you install Zig and further manage your installation.
Legend:
🎉 - Binary releases + automatic installer available
💪 - binary releases available
❌ - No binary releases. Maybe supported later. Requires compiling
- - Not applicable
OS/Arch | x86_64 | x86 | aarch64 | armv7a | riscv64 |
---|---|---|---|---|---|
Windows | 💪 | 💪 | ❌ | - | - |
Linux | 🎉 | 🎉 | 🎉 | ❌ | ❌ |
MacOS | 🎉 | - | 🎉 | - | - |
You can use this automated install script which will install zigverm along with the latest version of Zig
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/AMythicDev/zigverm/main/scripts/install.sh | bash
By default it will create $HOME/.zigverm
directory as the root folder for zigverm. You can customize
this by setting this by setting the ZIGVERM_ROOT_DIR
to the directory where you want to install
zigverm. Make sire you add the ZIGVERM_ROOT_DIR
in your shell config otherwise zigverm would not be able
to locate the installation folder.
The script will also put the installation directory's bin
folder to your $PATH
variable. For
this it will append a line to your $HOME/.profile
and your shell's rc file. The file for each
shell supported is listed below:
$HOME/.bashrc
$HOME/.zshrc
$XDG_CONFIG_HOME/fish/config.fish
, if not set then uses $HOME/.config/fish/config.fish
C:\Users\[YOU-USERNAME]\.zigverm
:.
├── bin
├── downloads
└── installs
zigverm.exe
and zig.exe
to the bin/
folder.bin
directory to your PATH
enviroment variableRequirements:
git
, if you want to compile the latest commit or you want to develop zigverm
.Now to compile:
main
branck or a release.zig build --release=safe
zigverm
, you can omit the --release=safe
flag.zigverm
and zig
in zig-out/bin/
directoryThere have been some API changes in Zig v0.14 (not released yet) which makes zigverm fail to compile on these versions of Zig. All the changes required to fix this is issue is being tracked in this PR. It will be merged into main once this version of Zig comes out.
Install versions (master, stable, x.y x.y.z)
Continue download if previously interrupted
Remove versions
List down installed versions
Update zigverm itself
Manage default and per-directory version overrides
Open the language reference and standard library docs (even when offline).
Tries to maintain strong compatiblity with the wider zig ecosystem (zls
, zig.vim
)
Read the quick guide
zigverm
is licensed under the Apache License 2.0. See the LICENSE file.