mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Add NIRI_BUILD_VERSION_STRING env variable to override the version
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user