1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
fn main() {
/* // Add app icon
if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
winresource::WindowsResource::new()
.set_icon("../res/framework_startmenuicon.ico")
.compile()
.unwrap();
}
let is_msvc = std::env::var("CARGO_CFG_TARGET_ENV")
.map(|v| v == "msvc")
.unwrap_or(false);
if !cfg!(debug_assertions) && is_msvc {
// Statically link vcruntime to allow running on clean install
static_vcruntime::metabuild();
// Embed resources file to force running as admin
embed_resource::compile("framework_tool-manifest.rc", embed_resource::NONE)
.manifest_optional()
.unwrap();
} */
}
|