Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ... Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
0b96690446
commit
0625006a9e
3 changed files with 15 additions and 13 deletions
|
@ -25,12 +25,14 @@ pub static RELEASE_CHANNEL: LazyLock<ReleaseChannel> =
|
|||
|
||||
/// The app identifier for the current release channel, Windows only.
|
||||
#[cfg(target_os = "windows")]
|
||||
pub static APP_IDENTIFIER: LazyLock<&str> = LazyLock::new(|| match *RELEASE_CHANNEL {
|
||||
ReleaseChannel::Dev => "Zed-Editor-Dev",
|
||||
ReleaseChannel::Nightly => "Zed-Editor-Nightly",
|
||||
ReleaseChannel::Preview => "Zed-Editor-Preview",
|
||||
ReleaseChannel::Stable => "Zed-Editor-Stable",
|
||||
});
|
||||
pub fn app_identifier() -> &'static str {
|
||||
match *RELEASE_CHANNEL {
|
||||
ReleaseChannel::Dev => "Zed-Editor-Dev",
|
||||
ReleaseChannel::Nightly => "Zed-Editor-Nightly",
|
||||
ReleaseChannel::Preview => "Zed-Editor-Preview",
|
||||
ReleaseChannel::Stable => "Zed-Editor-Stable",
|
||||
}
|
||||
}
|
||||
|
||||
/// The Git commit SHA that Zed was built at.
|
||||
#[derive(Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue