feat: version string formatting yy.mm.dd.hhmmss, app icon, and test fixes
This commit is contained in:
1 parent
1752753fcc
commit
81aac7245b
17 files changed
+170
-412
No files matched your search
+2
-3
@@ -9,15 +9,14 @@ fn main() {
|
||||
.unwrap_or_else(|| "unknown".to_string());
|
||||
|
||||
let git_date = Command::new("git")
|
||||
.args(["log", "-1", "--format=%cd", "--date=format:%Y.%m.%d"])
|
||||
.args(["log", "-1", "--format=%cd", "--date=format:%y.%m.%d.%H%M%S"])
|
||||
.output()
|
||||
.ok()
|
||||
.and_then(|out| String::from_utf8(out.stdout).ok())
|
||||
.unwrap_or_else(|| "unknown".to_string());
|
||||
|
||||
let version = format!(
|
||||
"{} ({} {})",
|
||||
env!("CARGO_PKG_VERSION"),
|
||||
"{} ({})",
|
||||
git_date.trim(),
|
||||
git_hash.trim()
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user