Add NIRI_BUILD_VERSION_STRING env variable to override the version

This commit is contained in:
Ivan Molodetskikh
2025-01-10 15:15:20 +03:00
parent 60b78dc2cd
commit 8be8694f5f
+4
View File
@@ -79,6 +79,10 @@ impl ResizeEdge {
}
pub fn version() -> String {
if let Some(v) = option_env!("NIRI_BUILD_VERSION_STRING") {
return String::from(v);
}
format!(
"{} ({})",
env!("CARGO_PKG_VERSION"),