mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 12:44:43 +00:00
Merge pull request #1874 from JasonOA888/fix/add-git-version-option
feat: add `git_version` build option for release version detection
This commit is contained in:
@@ -59,7 +59,11 @@ fn run(allocator: Allocator, main_arena: Allocator) !void {
|
||||
return std.process.cleanExit();
|
||||
},
|
||||
.version => {
|
||||
std.debug.print("{s}\n", .{lp.build_config.git_commit});
|
||||
const version = if (std.mem.eql(u8, lp.build_config.git_version, "dev"))
|
||||
lp.build_config.git_commit
|
||||
else
|
||||
lp.build_config.git_version;
|
||||
std.debug.print("{s}\n", .{version});
|
||||
return std.process.cleanExit();
|
||||
},
|
||||
else => {},
|
||||
|
||||
Reference in New Issue
Block a user