mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
switch version to pre-alpha-2020-09-22
vs pre-alpha-v0.7.0
This commit is contained in:
parent
8eec46424f
commit
b7dc17c11f
@ -4,6 +4,7 @@ mod option;
|
||||
|
||||
pub const GIT_VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/githash"));
|
||||
pub const GIT_TAG: &str = include_str!(concat!(env!("OUT_DIR"), "/gittag"));
|
||||
pub const VELOREN_VERSION_STAGE: &str = "Pre-Alpha";
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
pub static ref GIT_HASH: &'static str = GIT_VERSION.split('/').next().expect("failed to retrieve git_hash!");
|
||||
@ -11,9 +12,9 @@ lazy_static::lazy_static! {
|
||||
pub static ref GIT_DATE: String = GIT_DATETIME.split('-').take(3).collect::<Vec<&str>>().join("-");
|
||||
pub static ref GIT_TIME: &'static str = GIT_DATETIME.split('-').nth(3).expect("failed to retrieve git_time!");
|
||||
pub static ref DISPLAY_VERSION: String = if GIT_TAG == "" {
|
||||
format!("nightly-{}", GIT_DATE.to_string())
|
||||
format!("{}-{}", VELOREN_VERSION_STAGE, GIT_DATE.to_string())
|
||||
} else {
|
||||
format!("stable-{}", GIT_TAG.to_string())
|
||||
format!("{}-{}", VELOREN_VERSION_STAGE, GIT_TAG.to_string())
|
||||
};
|
||||
pub static ref DISPLAY_VERSION_LONG: String = if GIT_TAG == "" {
|
||||
format!("{} ({})", DISPLAY_VERSION.as_str(), GIT_HASH.to_string())
|
||||
|
@ -732,7 +732,7 @@ impl Hud {
|
||||
.set(self.ids.hurt_bg, ui_widgets);
|
||||
}
|
||||
// Alpha Disclaimer
|
||||
Text::new(&format!("Veloren Pre-Alpha {}", &version))
|
||||
Text::new(&format!("Veloren {}", &version))
|
||||
.font_id(self.fonts.cyri.conrod_id)
|
||||
.font_size(self.fonts.cyri.scale(10))
|
||||
.color(TEXT_COLOR)
|
||||
|
@ -717,7 +717,7 @@ impl CharSelectionUi {
|
||||
.set(self.ids.version, ui_widgets);
|
||||
// Alpha Disclaimer
|
||||
Text::new(&format!(
|
||||
"Veloren Pre-Alpha {}",
|
||||
"Veloren {}",
|
||||
common::util::DISPLAY_VERSION.as_str()
|
||||
))
|
||||
.font_id(self.fonts.cyri.conrod_id)
|
||||
|
@ -361,7 +361,7 @@ impl<'a> MainMenuUi {
|
||||
.set(self.ids.version, ui_widgets);
|
||||
// Alpha Disclaimer
|
||||
Text::new(&format!(
|
||||
"Veloren Pre-Alpha {}",
|
||||
"Veloren {}",
|
||||
common::util::DISPLAY_VERSION.as_str()
|
||||
))
|
||||
.font_id(self.fonts.cyri.conrod_id)
|
||||
|
Loading…
Reference in New Issue
Block a user