diff --git a/cli/version.rs b/cli/version.rs index dbd63f614e..0cdb32102a 100644 --- a/cli/version.rs +++ b/cli/version.rs @@ -9,6 +9,8 @@ const TYPESCRIPT: &str = env!("TS_VERSION"); const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); // TODO(bartlomieju): ideally we could remove this const. const IS_CANARY: bool = option_env!("DENO_CANARY").is_some(); +// TODO(bartlomieju): this is temporary, to allow Homebrew to cut RC releases as well +const IS_RC: bool = option_env!("DENO_RC").is_some(); pub static DENO_VERSION_INFO: Lazy = Lazy::new(|| { let release_channel = libsui::find_section("denover") @@ -17,6 +19,8 @@ pub static DENO_VERSION_INFO: Lazy = Lazy::new(|| { .unwrap_or({ if IS_CANARY { ReleaseChannel::Canary + } else if IS_RC { + ReleaseChannel::Rc } else { ReleaseChannel::Stable }