* i18n crate * twine::build_translations(): generate the i18n.rs with all language translation strings * twine::build_translations_from_readers(): generates to t!() macro readers: the INI files with the translation strings * twine::t() consumes the strings
27 lines
751 B
Rust
27 lines
751 B
Rust
/*
|
|
* advotracker - Hotline tackingtool for Advocats
|
|
*
|
|
* Copyright 2021 Ralf Zerres <ralf.zerres@networkx.de>
|
|
* SPDX-License-Identifier: (0BSD or MIT)
|
|
*/
|
|
|
|
extern crate winres;
|
|
extern crate twine;
|
|
|
|
use twine::build_translations;
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
twine::build_translations(&["./i18n/localization.ini"], "i18n.rs").unwrap();
|
|
|
|
if cfg!(target_os = "windows") {
|
|
let mut res = winres::WindowsResource::new();
|
|
//res.set_icon(".\assets\icons\adovtracker\advotracker.ico")
|
|
res.set_icon("advotracker.ico")
|
|
.set("InternalName", "ADVOTRACKER.EXE")
|
|
// manually set version 0.1.5.2
|
|
.set_version_info(winres::VersionInfo::PRODUCTVERSION, 0x0000000100050002);
|
|
res.compile().unwrap();
|
|
}
|
|
}
|