windows: Implement app_version
(#9410)
#### Call `app_version`:  #### `Zed.exe` info:  Release Notes: - N/A
This commit is contained in:
parent
cfa0fc96f0
commit
85c294da9a
5 changed files with 129 additions and 6 deletions
|
@ -44,7 +44,8 @@ fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
if std::env::var("CARGO_CFG_TARGET_ENV").ok() == Some("msvc".to_string()) {
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
// todo(windows): This is to avoid stack overflow. Remove it when solved.
|
||||
println!("cargo:rustc-link-arg=/stack:{}", 8 * 1024 * 1024);
|
||||
|
||||
|
@ -56,5 +57,11 @@ fn main() {
|
|||
"cargo:rustc-link-arg-bins=/MANIFESTINPUT:{}",
|
||||
manifest.canonicalize().unwrap().display()
|
||||
);
|
||||
|
||||
let res = winresource::WindowsResource::new();
|
||||
if let Err(e) = res.compile() {
|
||||
eprintln!("{}", e);
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue