link vcredist statically

This commit is contained in:
2024-07-12 19:24:03 +02:00
parent f29c5b5b6b
commit f42738cfd9
3 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
static_vcruntime::metabuild();
let mut res = winresource::WindowsResource::new();
res.set_icon("res/icon.ico").set_language(0x0409);
res.compile().unwrap();