build: generate a version number, show in log on startup

This commit is contained in:
Mitchell Hashimoto
2023-03-04 20:34:15 -08:00
parent 5906d87642
commit 0907da4eba
4 changed files with 87 additions and 1 deletions

View File

@@ -9,6 +9,10 @@ const assert = std.debug.assert;
const apprt = @import("apprt.zig");
const font = @import("font/main.zig");
/// The semantic version of this build.
pub const version = options.app_version;
pub const version_string = options.app_version_string;
/// The artifact we're producing. This can be used to determine if we're
/// building a standalone exe, an embedded lib, etc.
pub const artifact = Artifact.detect();