增加windows下批量打包功能,修复批量打包后左上角icon均为微信读书的logo的bug
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"bundle": {
|
||||
"icon": [
|
||||
"icons/weread.icns",
|
||||
"icons/icon.ico",
|
||||
"png/weread_32.ico",
|
||||
"png/weread_512.png"
|
||||
],
|
||||
"identifier": "com.tw93.weread",
|
||||
|
||||
Reference in New Issue
Block a user