Use winresource instead of embed-manifest (#10810)
use winresource for crates/zed and crates/storybook. tested on `x86_64-pc-windows-gnu`. on `x86_64-pc-windows-msvc` I receive a error message, that looks like a problem with my machine Release Notes: - N/A
This commit is contained in:
parent
048fc7ad09
commit
9e88155a48
5 changed files with 12 additions and 15 deletions
|
@ -57,11 +57,10 @@ fn main() {
|
|||
println!("cargo:rerun-if-changed={}", manifest.display());
|
||||
println!("cargo:rerun-if-changed={}", icon.display());
|
||||
|
||||
embed_manifest::embed_manifest(embed_manifest::new_manifest(manifest.to_str().unwrap()))
|
||||
.unwrap();
|
||||
|
||||
let mut res = winresource::WindowsResource::new();
|
||||
res.set_icon(icon.to_str().unwrap());
|
||||
res.set_manifest_file(manifest.to_str().unwrap());
|
||||
|
||||
if let Err(e) = res.compile() {
|
||||
eprintln!("{}", e);
|
||||
std::process::exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue