diff options
| author | pml68 <contact@pml68.dev> | 2025-02-26 23:23:52 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-02-26 23:23:52 +0100 |
| commit | 5c68b550678601a9646e0c44e617069ee16db348 (patch) | |
| tree | a68d0d1ae29625182b0668d648a8ade0b307ea03 /build.rs | |
| parent | feat: implement `ValueFromStr` for Rotation (diff) | |
| download | iced-builder-5c68b550678601a9646e0c44e617069ee16db348.tar.gz | |
feat: switch to personal `iced` fork, work on version info
Diffstat (limited to '')
| -rw-r--r-- | build.rs | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,4 +1,17 @@ +use std::process::Command; + fn main() { + let git_hash = Command::new("git") + .args(["describe", "--always", "--dirty", "--exclude='*'"]) + .output() + .ok() + .filter(|output| output.status.success()) + .and_then(|x| String::from_utf8(x.stdout).ok()); + + if let Some(hash) = git_hash.as_ref() { + println!("cargo:rustc-env=GIT_HASH={}", hash); + } + println!("cargo::rerun-if-changed=fonts/icons.toml"); iced_fontello::build("fonts/icons.toml").expect("Build icons font"); #[cfg(windows)] |
