From 75f9e55f94f7d2d307eba9aeb1d316b1813ce444 Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Mon, 8 Jul 2024 12:29:29 -0600 Subject: [PATCH] Added release to readme, changed default build option --- README.md | 10 ++++++++-- build.zig | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 24cf33c..2740b98 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,14 @@ Shuffles the current deck of cards in random order ## Running -You can navigate to the releases to download a prebuilt binary for your platform, or you can run it locally -yourself with Zig. +You can navigate to [the releases](https://git.fosscat.com/n8r/genius_deck/releases) to download a prebuilt +binary for your platform, or you can run it locally yourself with Zig: + +```sh +zig build run +# Or for running with params +zig build run -- -h # help menu +``` You will need to download Zig 0.13.0 from Zig's [releases page](https://ziglang.org/download/), or from your package manager. If you use Nix flakes, a working config with direnv is already present in the repository. diff --git a/build.zig b/build.zig index 0bd5a44..7f80e08 100644 --- a/build.zig +++ b/build.zig @@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void { // TODO // Prefer small size binaries for optimization - const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseSmall }); + const optimize = b.standardOptimizeOption(.{}); const exe = b.addExecutable(.{ .name = "genius_deck",