mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 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 {
|
pub fn version() -> String {
|
||||||
|
if let Some(v) = option_env!("NIRI_BUILD_VERSION_STRING") {
|
||||||
|
return String::from(v);
|
||||||
|
}
|
||||||
|
|
||||||
format!(
|
format!(
|
||||||
"{} ({})",
|
"{} ({})",
|
||||||
env!("CARGO_PKG_VERSION"),
|
env!("CARGO_PKG_VERSION"),
|
||||||
|
|||||||
Reference in New Issue
Block a user