Skip to content

updater.zigUpdate Checker & Auto-Updater for Zig

Production-grade update management with multi-provider support, custom versioning, and flexible configurations

Quick Start ​

zig
const std = @import("std");
const updater = @import("updater");

pub fn main() !void {
    var gpa = std.heap.GeneralPurposeAllocator(.{}){};
    defer _ = gpa.deinit();
    const allocator = gpa.allocator();

    const result = try updater.checkGitHub(
        allocator,
        "muhammad-fiaz",
        "updater.zig",
        "0.0.1",
    );

    if (result.has_update) {
        std.debug.print("Update available: {s}\n", .{result.latest_version.?});
    }
}

Installation ​

bash
zig fetch --save https://github.com/muhammad-fiaz/updater.zig/archive/refs/tags/0.0.1.tar.gz

Requirements ​

  • Zig 0.15.0 or later
  • Network access (only when checking is enabled)

Released under the MIT License.