summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Oram <dev@mitmaro.ca>2019-12-28 22:22:38 -0330
committerTim Oram <dev@mitmaro.ca>2019-12-28 22:31:31 -0330
commitfbb86d77f33f6cdfebb05811a0542e360095793b (patch)
treec4b642f0dafe2ab817914165e3625a3901397261
parentf97e2597709b6da6cd99cb42ea13dc25106795c2 (diff)
Append nightly to version of nightly builds
-rw-r--r--Cargo.toml1
-rwxr-xr-xscripts/push-latest-release.bash2
-rw-r--r--src/constants.rs4
3 files changed, 6 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 35c6e54..208b69c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,6 +49,7 @@ features = []
[features]
default = []
+nightly = []
[package.metadata.deb]
maintainer = "Tim Oram <dev@mitmaro.ca>"
diff --git a/scripts/push-latest-release.bash b/scripts/push-latest-release.bash
index 7a493aa..18f5fd8 100755
--- a/scripts/push-latest-release.bash
+++ b/scripts/push-latest-release.bash
@@ -7,7 +7,7 @@ set -o pipefail
REPOSITORY="MitMaro/git-interactive-rebase-tool"
TARGET_RELEASE_ID=18843342
-cargo build --release
+cargo build --release --features nightly
echo "Pushing release for $OS"
diff --git a/src/constants.rs b/src/constants.rs
index 7977aed..fb6cf79 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -14,4 +14,8 @@ pub(crate) const MINIMUM_COMPACT_WINDOW_WIDTH: usize = 20; // ">s ccc mmmmmmmmmm
pub(crate) const MINIMUM_FULL_WINDOW_WIDTH: usize = 34; // " > squash cccccccc mmmmmmmmmmmmm %".len()
pub(crate) const NAME: &str = "interactive-rebase-tool";
+
+#[cfg(not(feature = "nightly"))]
pub(crate) const VERSION: &str = env!("CARGO_PKG_VERSION");
+#[cfg(feature = "nightly")]
+pub(crate) const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "-nightly");