aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 26b9c829..8e87117d 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -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"),