pub(super) const VERSION: &str = env!("CARGO_PKG_VERSION");
pub(super) const VERBOSE_VERSION: &str = concat!(
env!("CARGO_PKG_VERSION"),
" (",
env!("CROFT_GIT_HASH"),
", built ",
env!("CROFT_BUILD_TIME"),
")"
);
pub(super) fn build_info_line(source: crate::update_check::InstallSource) -> String {
match source {
crate::update_check::InstallSource::Homebrew => format!(
"{}, installed with Homebrew)",
VERBOSE_VERSION.trim_end_matches(')')
),
crate::update_check::InstallSource::SelfManaged => VERBOSE_VERSION.to_string(),
}
}