diff options
author | Tim Oram <dev@mitmaro.ca> | 2019-12-28 22:22:38 -0330 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2019-12-28 22:31:31 -0330 |
commit | fbb86d77f33f6cdfebb05811a0542e360095793b (patch) | |
tree | c4b642f0dafe2ab817914165e3625a3901397261 | |
parent | f97e2597709b6da6cd99cb42ea13dc25106795c2 (diff) |
Append nightly to version of nightly builds
-rw-r--r-- | Cargo.toml | 1 | ||||
-rwxr-xr-x | scripts/push-latest-release.bash | 2 | ||||
-rw-r--r-- | src/constants.rs | 4 |
3 files changed, 6 insertions, 1 deletions
@@ -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"); |