ksud: Update version code calculations to adjust historical version offsets

This commit is contained in:
ShirkNeko
2025-06-22 18:45:58 +08:00
parent f9b3478dbb
commit 4bec5ae7b1

View File

@@ -15,7 +15,7 @@ fn get_git_version() -> Result<(u32, String), std::io::Error> {
.trim() .trim()
.parse() .parse()
.map_err(|_| std::io::Error::new(std::io::ErrorKind::Other, "Failed to parse git count"))?; .map_err(|_| std::io::Error::new(std::io::ErrorKind::Other, "Failed to parse git count"))?;
let version_code = 10000 + 606 + version_code; // For historical reasons let version_code = 10000 + 700 + version_code; // For historical reasons
let version_name = String::from_utf8( let version_name = String::from_utf8(
Command::new("git") Command::new("git")