Restored version from env

This commit is contained in:
veeso
2021-06-26 18:06:16 +02:00
parent c7414ab070
commit 8a36c459d5
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ impl AuthActivity {
if client.get_check_for_updates() {
debug!("Check for updates is enabled");
// Send request
match git::check_for_updates("0.5.0") {
match git::check_for_updates(env!("CARGO_PKG_VERSION")) {
Ok(github_tag) => github_tag,
Err(err) => {
// Report error

View File

@@ -191,7 +191,7 @@ impl AuthActivity {
.with_spans(vec![
TextSpan::from("termscp "),
TextSpanBuilder::new(version).underlined().bold().build(),
TextSpan::from(" is now available! View release notes with <CTRL+R>"),
TextSpan::from(" is NOW available! Get it from <https://veeso.github.io/termscp/>; view release notes with <CTRL+R>"),
])
.build(),
)),