You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LordMZTE 45675cafa3
chore: update to new getty API
5 months ago
src chore: update to new getty API 5 months ago
.gitignore initial commit 6 months ago
LICENSE initial commit 6 months ago
README.md docs: clarify required compiler version 6 months ago
build.zig fix: correct libarchive library name 6 months ago
gyro.zzz feat: zupper tracks what version is in use 6 months ago

README.md

zupper

A Zig version manager, written in zig.

WARNING: zupper is alpha software! Expect bugs!

features

  • managing multiple zig installations
    • installing zig
    • switching zig installations
    • removing installations
    • automatic updates
  • fancy CLI
  • concurrent downloading and unpacking
  • multi-platform support (actually, not sure about windows xD)
  • tiny binary (211 KB)
  • few native dependencies
  • written in zig

building

Linux

Zupper requires libarchive and libcurl to be installed. libarchive is used to unpack the compiler toolchain and libcurl for downloading it. These 2 dependencies will probably be swapped out for zig versions at some point once a suitable library pops up.

  1. Install the dependencies.

You probably already have them installed, but just to make sure, here are the commands to install them.

Arch:

pacman -S --needed \
    curl \
    libarchive

Debian:

# you don't need to use the openssl version of libcurl
apt install \
    libcurl4-openssl-dev \
    libarchive-dev
  1. Install gyro and the zig toolchain

Gyro is a zig package manager. It is used by zupper to manage dependencies.

Zupper requires the development version of Zig (0.11.0). Make sure you install one of the latest versions of Zig.

  1. Build it!
gyro build -Drelease-fast -p ~/.local

macOS

I'll be honest here, I got no idea.

You should be able to do it in a similar fashion to Linux.

windows

It might work if you can get the dependencies working. Maybe, I'll add static linking some day.

As for now, good luck lol.