增加windows下批量打包功能,修复批量打包后左上角icon均为微信读书的logo的bug

This commit is contained in:
Tlntin
2022-11-19 15:06:34 +08:00
parent c116082fa6
commit ef196d4659
8 changed files with 83 additions and 2 deletions

View File

@@ -122,7 +122,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"), "/icons/icon.ico");
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));

View File

@@ -20,7 +20,7 @@
"bundle": {
"icon": [
"icons/weread.icns",
"icons/icon.ico",
"png/weread_32.ico",
"png/weread_512.png"
],
"identifier": "com.tw93.weread",