diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-05-27 01:51:11 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-05-27 01:51:11 -0400 |
| commit | 7f58741cfea43780fcd8702afffeaea6cd322029 (patch) | |
| tree | 7dccd5210398ad19ebc2af9f83f9ba01995d2f18 /build.zig | |
| parent | 6abaa0b102d47d98800f8d26e1ce74bcef3d800d (diff) | |
storing progress
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 12 | ||||
| -rw-r--r-- | build.zig.zon | 12 |
2 files changed, 18 insertions, 6 deletions
@@ -1,4 +1,5 @@ const std = @import("std"); +const webgen = @import("webgen"); pub fn build(b: *std.Build) void { const generate_html = b.addExecutable(.{ @@ -11,12 +12,9 @@ pub fn build(b: *std.Build) void { const run_generate_html = b.addRunArtifact(generate_html); run_generate_html.setCwd(b.path("")); // make sure we always run from buildroot - b.getInstallStep().dependOn(&run_generate_html.step); - const bundle_html = b.addSystemCommand(&[_][]const u8{ "tar", "--exclude=pages.tar.gz", "-czvf", "html-out/pages.tar.gz", "html-out" }); - const run_bundle_html = b.step("bundle", "Creates a tarball of the HTML output"); - bundle_html.step.dependOn(b.getInstallStep()); - run_bundle_html.dependOn(&bundle_html.step); + bundle_html.step.dependOn(&run_generate_html.step); + b.getInstallStep().dependOn(&bundle_html.step); const serve = b.addSystemCommand(&[_][]const u8{ "lighttpd", "-Df", "util/lighttpd.conf" }); const run_server = b.step("serve", "Run a local test server"); @@ -24,5 +22,7 @@ pub fn build(b: *std.Build) void { run_server.dependOn(&serve.step); const publish_to_prod = b.step("publish", "Publish the website to production"); - _ = publish_to_prod; + publish_to_prod.dependOn(b.getInstallStep()); + + b.getInstallStep().dependOn(&webgen.installHtmlStep(b).step); } diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 index 0000000..7e1ce7b --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,12 @@ +.{ + .name = .www_eviltransgenders_club, + .version = "0.16.0", + .dependencies = .{ + .webgen = .{ + .url = "/home/rosa/src/web/webgen", + .hash = "webgen-0.1.0-XDIIqScA-xKBcPSejmazf-afVXygLblU9anFQtVljBQd", + }, + }, + .paths = .{""}, + .fingerprint = 0xccaf7641aa454b2f, +} |
