2024-04-17 21:27:57 +08:00
|
|
|
fn make_lang_id(p: u32, s: u32) -> u16 {
|
|
|
|
((s << 10) | p) as u16
|
|
|
|
}
|
|
|
|
|
2024-01-21 21:37:47 +08:00
|
|
|
fn main() {
|
2024-02-01 21:51:42 +08:00
|
|
|
#[cfg(windows)]
|
|
|
|
{
|
2024-01-21 21:37:47 +08:00
|
|
|
let mut res = winres::WindowsResource::new();
|
|
|
|
// res.set_icon("icon.ico");
|
|
|
|
// res.set_manifest(&manifest);
|
|
|
|
// res.append_rc_content(&rc);
|
|
|
|
res.set("ProductName", "Caller by shenjackyuanjie")
|
|
|
|
.set("OriginalFilename", "caller.exe")
|
|
|
|
.set("FileDescription", "一个简单的包装器")
|
|
|
|
.set("LegalCopyright", "shenjack Copyright © 2024")
|
|
|
|
.set("LegalTrademark", "TSW")
|
|
|
|
.set("CompanyName", "TSW (shenjack's workshop)")
|
|
|
|
.set("Comments", "一个简单的包装器")
|
|
|
|
.set("InternalName", "caller.exe")
|
2024-02-01 21:38:32 +08:00
|
|
|
.set("ProductVersion", "1.3.0.0")
|
2024-04-17 21:27:57 +08:00
|
|
|
.set_language(make_lang_id(
|
|
|
|
windows_sys::Win32::System::SystemServices::LANG_CHINESE_SIMPLIFIED,
|
|
|
|
windows_sys::Win32::System::SystemServices::SUBLANG_CHINESE_SIMPLIFIED,
|
2024-01-21 21:37:47 +08:00
|
|
|
));
|
|
|
|
res.compile().unwrap();
|
|
|
|
}
|
|
|
|
}
|