From 8abaf666024a2ed844db93d81e2e67184c9aa828 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 24 May 2023 09:21:50 -0600 Subject: [PATCH] WIP --- crates/util/src/channel.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/crates/util/src/channel.rs b/crates/util/src/channel.rs index 274fd576a0..82181cbacd 100644 --- a/crates/util/src/channel.rs +++ b/crates/util/src/channel.rs @@ -3,12 +3,15 @@ use std::env; use lazy_static::lazy_static; lazy_static! { - pub static ref RELEASE_CHANNEL_NAME: String = if cfg!(debug_assertions) { - env::var("ZED_RELEASE_CHANNEL") - .unwrap_or_else(|_| include_str!("../../zed/RELEASE_CHANNEL").to_string()) - } else { - include_str!("../../zed/RELEASE_CHANNEL").to_string() - }; + // TODO: Put this back! + pub static ref RELEASE_CHANNEL_NAME: String = env::var("ZED_RELEASE_CHANNEL") + .unwrap_or_else(|_| include_str!("../../zed/RELEASE_CHANNEL").to_string()); + // pub static ref RELEASE_CHANNEL_NAME: String = if cfg!(debug_assertions) { + // env::var("ZED_RELEASE_CHANNEL") + // .unwrap_or_else(|_| include_str!("../../zed/RELEASE_CHANNEL").to_string()) + // } else { + // include_str!("../../zed/RELEASE_CHANNEL").to_string() + // }; pub static ref RELEASE_CHANNEL: ReleaseChannel = match RELEASE_CHANNEL_NAME.as_str() { "dev" => ReleaseChannel::Dev, "preview" => ReleaseChannel::Preview,