mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
WIP
This commit is contained in:
parent
6368ade1da
commit
8abaf66602
1 changed files with 9 additions and 6 deletions
|
@ -3,12 +3,15 @@ use std::env;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
pub static ref RELEASE_CHANNEL_NAME: String = if cfg!(debug_assertions) {
|
// TODO: Put this back!
|
||||||
env::var("ZED_RELEASE_CHANNEL")
|
pub static ref RELEASE_CHANNEL_NAME: String = env::var("ZED_RELEASE_CHANNEL")
|
||||||
.unwrap_or_else(|_| include_str!("../../zed/RELEASE_CHANNEL").to_string())
|
.unwrap_or_else(|_| include_str!("../../zed/RELEASE_CHANNEL").to_string());
|
||||||
} else {
|
// pub static ref RELEASE_CHANNEL_NAME: String = if cfg!(debug_assertions) {
|
||||||
include_str!("../../zed/RELEASE_CHANNEL").to_string()
|
// 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() {
|
pub static ref RELEASE_CHANNEL: ReleaseChannel = match RELEASE_CHANNEL_NAME.as_str() {
|
||||||
"dev" => ReleaseChannel::Dev,
|
"dev" => ReleaseChannel::Dev,
|
||||||
"preview" => ReleaseChannel::Preview,
|
"preview" => ReleaseChannel::Preview,
|
||||||
|
|
Loading…
Reference in a new issue