mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Replace BUILD_DATE with CARGO_PKG_VERSION (#878)
to make builds reproducible. See https://reproducible-builds.org/ for why this is good.
This commit is contained in:
parent
67f6a4989f
commit
b2fb33229b
|
@ -7,8 +7,7 @@ edition = "2021"
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
repository = "https://github.com/ChrisTitusTech/linutil/tree/main/tui"
|
repository = "https://github.com/ChrisTitusTech/linutil/tree/main/tui"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
include = ["src/*.rs", "Cargo.toml", "build.rs", "cool_tips.txt", "../man/linutil.1"]
|
include = ["src/*.rs", "Cargo.toml", "cool_tips.txt", "../man/linutil.1"]
|
||||||
build = "build.rs"
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["tips"]
|
default = ["tips"]
|
||||||
|
@ -32,9 +31,6 @@ anstyle = "1.0.8"
|
||||||
ansi-to-tui = "6.0.0"
|
ansi-to-tui = "6.0.0"
|
||||||
zips = "0.1.7"
|
zips = "0.1.7"
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
chrono = "0.4.33"
|
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "linutil"
|
name = "linutil"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
fn main() {
|
|
||||||
// Add current date as a variable to be displayed in the 'Linux Toolbox' text.
|
|
||||||
println!(
|
|
||||||
"cargo:rustc-env=BUILD_DATE={}",
|
|
||||||
chrono::Local::now().format("%Y-%m-%d")
|
|
||||||
);
|
|
||||||
}
|
|
|
@ -24,7 +24,7 @@ use temp_dir::TempDir;
|
||||||
|
|
||||||
const MIN_WIDTH: u16 = 77;
|
const MIN_WIDTH: u16 = 77;
|
||||||
const MIN_HEIGHT: u16 = 19;
|
const MIN_HEIGHT: u16 = 19;
|
||||||
const TITLE: &str = concat!("Linux Toolbox - ", env!("BUILD_DATE"));
|
const TITLE: &str = concat!("Linux Toolbox - ", env!("CARGO_PKG_VERSION"));
|
||||||
const ACTIONS_GUIDE: &str = "List of important tasks performed by commands' names:
|
const ACTIONS_GUIDE: &str = "List of important tasks performed by commands' names:
|
||||||
|
|
||||||
D - disk modifications (ex. partitioning) (privileged)
|
D - disk modifications (ex. partitioning) (privileged)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user