fix version generation

This is related to a prior set of patches, we're getting CI failures
related to how tags are working (or not working); this hopefully
fixes that.
This commit is contained in:
bunnie 2025-10-06 23:35:35 +08:00
parent ea8927fc55
commit dc734dbfa8
No known key found for this signature in database

View file

@ -10,16 +10,9 @@ use chrono::Local;
pub(crate) fn generate_version(add_timestamp: bool) {
let output = if cfg!(target_os = "windows") {
Command::new("cmd")
.args(["/C", "git describe --tags --long"])
.output()
.expect("failed to execute process")
Command::new("cmd").args(["/C", "git describe --long"]).output().expect("failed to execute process")
} else {
Command::new("sh")
.arg("-c")
.arg("git describe --tags --long")
.output()
.expect("failed to execute process")
Command::new("sh").arg("-c").arg("git describe --long").output().expect("failed to execute process")
};
let gitver = output.stdout;
let semver = String::from_utf8_lossy(&gitver);