https://github.com/lucascompython/zigup
A small utility to update your Zig installation to the latest version
https://github.com/lucascompython/zigup
Last synced: about 2 months ago
JSON representation
A small utility to update your Zig installation to the latest version
- Host: GitHub
- URL: https://github.com/lucascompython/zigup
- Owner: lucascompython
- License: gpl-3.0
- Created: 2025-02-08T00:12:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-30T11:31:11.000Z (about 1 year ago)
- Last Synced: 2025-04-30T12:44:39.975Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zigup
A small utility to update your `Zig` and `ZLS` installation to the latest version.
It's not supposed to be a full-blown version manager, just a simple way to keep your `Zig` and `ZLS` installation up to date with the latest master branch.
Only works for `x86_64-linux` and `x86_64-windows`.
Since this updates to the latest master branch it's recommended to also use the latest `ZLS` version.
## How does it work?
It downloads the latest version of master branch from the [official download page](https://ziglang.org/download/) and replaces the current installation with the new one.
It's that simple.
For `ZLS`, it makes the same request that the [official ZLS download page](https://zigtools.org/zls/install/) makes to its API, to then download the latest version.
For Linux symlinks are created in `/usr/local/bin/zig` and `/usr/local/bin/zls` to the `zig` and `zls` binary respectively.
For Windows the `PATH` environment variable is updated to include the `zig` and `zls` path.
## How to use it?
```bash
# Linux
./zigup.sh zls # to also install/update to the latest ZLS version
# Windows
./zigup.ps1 zls
```