summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorPolesznyák Márk László <116908301+pml68@users.noreply.github.com>2025-04-29 23:35:39 +0200
committerGitHub <noreply@github.com>2025-04-29 23:35:39 +0200
commitca50c308f0058af80e9125ba00a1349877169968 (patch)
tree38fbd5c78c90487e5b641f635d01c4a614ddfd44 /build.rs
parentMerge pull request #14 from pml68/dependabot/cargo/windows_exe_info-0.5.1 (diff)
parentstyle: `theme` -> `appearance` (diff)
downloadiced-builder-ca50c308f0058af80e9125ba00a1349877169968.tar.gz
Merge pull request #20 from pml68/feat/custom-theme
Diffstat (limited to '')
-rw-r--r--build.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/build.rs b/build.rs
index d1a02af..de1f754 100644
--- a/build.rs
+++ b/build.rs
@@ -5,6 +5,17 @@ use std::path::Path;
use std::process::Command;
fn main() {
+ println!("cargo::rerun-if-changed=fonts/icons.toml");
+ iced_fontello::build("fonts/icons.toml").expect("Build icons font");
+ #[cfg(windows)]
+ {
+ embed_resource::compile(
+ "assets/windows/iced_builder.rc",
+ embed_resource::NONE,
+ );
+ windows_exe_info::versioninfo::link_cargo_env();
+ }
+
let git_hash = Command::new("git")
.args(["describe", "--always", "--dirty", "--exclude='*'"])
.output()
@@ -48,15 +59,4 @@ fn main() {
if head_ref.exists() {
println!("cargo:rerun-if-changed={}", head_ref.display());
}
-
- println!("cargo::rerun-if-changed=fonts/icons.toml");
- iced_fontello::build("fonts/icons.toml").expect("Build icons font");
- #[cfg(windows)]
- {
- embed_resource::compile(
- "assets/windows/iced_builder.rc",
- embed_resource::NONE,
- );
- windows_exe_info::versioninfo::link_cargo_env();
- }
}