修复由于图标路径采用绝对路径,以及图片资源为添加到msi文件导致exe文件无法运行问题
This commit is contained in:
@@ -118,9 +118,7 @@ fn main() -> wry::Result<()> {
|
||||
})
|
||||
.with_inner_size(wry::application::dpi::LogicalSize::new(width, height));
|
||||
#[cfg(target_os = "windows")]
|
||||
let icon_path = concat!(env!("CARGO_MANIFEST_DIR"), "/png/weread_32.ico");
|
||||
#[cfg(target_os = "windows")]
|
||||
let icon = load_icon(std::path::Path::new(icon_path));
|
||||
let icon = load_icon(std::path::Path::new("png/weread_32.ico"));
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
let window = common_window
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
"providerShortName": null,
|
||||
"signingIdentity": null
|
||||
},
|
||||
"resources": [],
|
||||
"resources": ["png/weread_32.ico"],
|
||||
"shortDescription": "",
|
||||
"targets": ["deb", "msi", "dmg"],
|
||||
"windows": {
|
||||
|
||||
Reference in New Issue
Block a user