2022-12-06 22:53:32 +00:00
|
|
|
use anyhow::Result;
|
2024-09-10 01:26:46 +00:00
|
|
|
use vergen_gitcl::{BuildBuilder, CargoBuilder, Emitter, GitclBuilder};
|
2022-12-06 22:53:32 +00:00
|
|
|
|
2022-12-10 15:34:03 +00:00
|
|
|
fn main() -> Result<()> {
|
|
|
|
#[cfg(windows)]
|
|
|
|
{
|
|
|
|
winres::WindowsResource::new().set_icon("assets/icon.ico").compile()?;
|
|
|
|
}
|
2024-09-10 01:26:46 +00:00
|
|
|
Emitter::default()
|
|
|
|
.add_instructions(&BuildBuilder::all_build()?)?
|
|
|
|
.add_instructions(&CargoBuilder::all_cargo()?)?
|
|
|
|
.add_instructions(&GitclBuilder::all_git()?)?
|
|
|
|
.emit()
|
2022-12-10 15:34:03 +00:00
|
|
|
}
|