🔄
Multi-Provider Support
GitHub, GitLab, Codeberg, and custom/self-hosted providers out of the box
Production-grade update management with multi-provider support, custom versioning, and flexible configurations
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.?});
}
}zig fetch --save https://github.com/muhammad-fiaz/updater.zig/archive/refs/tags/0.0.1.tar.gz