24 lines
563 B
Plaintext
24 lines
563 B
Plaintext
/*
|
|
* advotracker - Hotline tackingtool for Advocats
|
|
*
|
|
* Copyright 2021 Ralf Zerres <ralf.zerres@networkx.de>
|
|
* SPDX-License-Identifier: (0BSD or MIT)
|
|
*/
|
|
|
|
use std::error::Error;
|
|
use twine::build_translations;
|
|
|
|
//#[cfg(windows)]
|
|
use windres::Build;
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
println!("cargo: rerun-if-changed=build.rs");
|
|
build_translations(&["./src/i18n/localization.ini"], "i18n.rs").unwrap();
|
|
|
|
println!("cargo: compile windows ressource");
|
|
//#[cfg(windows)]
|
|
Build::new().compile("advotracker.rc").unwrap();
|
|
|
|
Ok(())
|
|
}
|