diff options
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 16 | ||||
| -rw-r--r-- | build.zig.zon | 4 |
2 files changed, 5 insertions, 15 deletions
@@ -2,18 +2,10 @@ const std = @import("std"); const webgen = @import("webgen"); pub fn build(b: *std.Build) void { - const generate_html = b.addExecutable(.{ - .name = "generate_html", - .root_module = b.createModule(.{ - .root_source_file = b.path("util/generate_html.zig"), - .target = b.graph.host, - }), - }); - - const run_generate_html = b.addRunArtifact(generate_html); - run_generate_html.setCwd(b.path("")); // make sure we always run from buildroot + const run_webgen = webgen.installHtmlStep(b); + run_webgen.addDirectoryArg(b.path("src")); const bundle_html = b.addSystemCommand(&[_][]const u8{ "tar", "--exclude=pages.tar.gz", "-czvf", "html-out/pages.tar.gz", "html-out" }); - bundle_html.step.dependOn(&run_generate_html.step); + bundle_html.step.dependOn(&run_webgen.step); b.getInstallStep().dependOn(&bundle_html.step); const serve = b.addSystemCommand(&[_][]const u8{ "lighttpd", "-Df", "util/lighttpd.conf" }); @@ -23,6 +15,4 @@ pub fn build(b: *std.Build) void { const publish_to_prod = b.step("publish", "Publish the website to production"); publish_to_prod.dependOn(b.getInstallStep()); - - b.getInstallStep().dependOn(&webgen.installHtmlStep(b).step); } diff --git a/build.zig.zon b/build.zig.zon index 7e1ce7b..b3ce213 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -3,8 +3,8 @@ .version = "0.16.0", .dependencies = .{ .webgen = .{ - .url = "/home/rosa/src/web/webgen", - .hash = "webgen-0.1.0-XDIIqScA-xKBcPSejmazf-afVXygLblU9anFQtVljBQd", + .url = "git+https://git.eviltransgenders.club/~rosa/webgen.git#2746eb6e87255cb74ed879e644e9138895b10bfc", + .hash = "webgen-0.1.0-XDIIqV0jAACSsoysHFwdiJ57B-CaWUMki_SuTa_BO9Af", }, }, .paths = .{""}, |
