Няма описание

Jonathan Marler 6e645c4946 build windows ci target in ReleaseSafe for faster zip extraction преди 10 месеца
.github 24bcacc5be zig update 0.12.0 (remove ziget dependency) преди 10 месеца
zip 29f93e5f4c remove zarc in favor us custom unzip implementation преди 10 месеца
.gitattributes d3cc334855 fix eol to be lf преди 3 години
.gitignore ea1f4a3bed convert BASH test to Zig so we can start testing on Windows преди 3 години
LICENSE d3eadf245c add MIT-0 License преди 2 години
README.md 0a54205d76 Update README.md преди 10 месеца
build.zig 6e645c4946 build windows ci target in ReleaseSafe for faster zip extraction преди 10 месеца
build.zig.zon 29f93e5f4c remove zarc in favor us custom unzip implementation преди 10 месеца
fixdeletetree.zig 962c153c8b zig fmt преди 1 година
test.zig 24bcacc5be zig update 0.12.0 (remove ziget dependency) преди 10 месеца
unzip.zig e780f3f44b fix unzip cmdline tool преди 10 месеца
win32exelink.zig 24bcacc5be zig update 0.12.0 (remove ziget dependency) преди 10 месеца
zigup.zig dde66bb9db update zip преди 10 месеца
zip.zig dde66bb9db update zip преди 10 месеца

README.md

zigup

Download and manage zig compilers.

Usage

# fetch a compiler and set it as the default
zigup <version>
zigup master
zigup 0.6.0

# fetch a compiler only (do not set it as default)
zigup fetch <version>
zigup fetch master

# print the default compiler version
zigup default

# set the default compiler
zigup default <version>

# list the installed compiler versions
zigup list

# clean compilers that are not the default, not master, and not marked to keep. when a version is specified, it will clean that version
zigup clean [<version>]

# mark a compiler to keep
zigup keep <version>

# run a specific version of the compiler
zigup run <version> <args>...

How the compilers are managed

zigup stores each compiler in a global "install directory" in a versioned subdirectory. On posix systems the "install directory" is $HOME/zig and on windows the install directory will be a directory named "zig" in the same directory as the "zigup.exe".

zigup makes the zig program available by creating an entry in a directory that occurs in the PATH environment variable. On posix systems this entry is a symlink to one of the zig executables in the install directory. On windows this is an executable that forwards invocations to one of the zig executables in the install directory.

Both the "install directory" and "path link" are configurable through command-line options --install-dir and --path-link respectively.

Building

Run zig build to build, zig build test to test and install with:

# install to a bin directory with
cp zig-out/bin/zigup BIN_PATH

Building Zigup

Zigup is currently built/tested using zig 0.12.0.

TODO

  • set/remove compiler in current environment without overriding the system-wide version.

Dependencies

On linux and macos, zigup depends on tar to extract the compiler archive files (this may change in the future).