diff --git a/README.md b/README.md index 78320e7..b2e2214 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ | + r | Ctrl + r | 刷新页面 | | + w | Ctrl + w | 隐藏窗口,非退出 | | + - | Ctrl + - | 缩小页面 | -| + w | Ctrl + + | 放大页面 | +| + + | Ctrl + + | 放大页面 | | + = | Ctrl + = | 放大页面 | | + 0 | Ctrl + 0 | 重置页面缩放 | @@ -82,8 +82,8 @@ ## 注意点 -- Windows 下不能安装到 C:\Program File,会直接闪退。建议安装到其他目录,比如 D:\Program Files。 -- Linux 下暂时不能存 cookie,即应用关闭后数据清空,账号自动推出。 +- Windows 下不能安装到 C:\Program File,会直接闪退。建议安装到其他非管理员权限目录,比如 D:\Program Files (x86) 。 +- Linux 下暂时不能存 cookie,即应用关闭后数据清空,账号自动推出。 ## 使用命令行打包 diff --git a/README_EN.md b/README_EN.md index 2f79cd4..a1b2acc 100644 --- a/README_EN.md +++ b/README_EN.md @@ -82,7 +82,7 @@ In addition, it supports double clicking the head to switch to full screen, and ## Precautions -- It cannot be installed to C:\Program File under Windows, and it will crash directly. It is recommended to install to another directory, such as D:\Program Files. +- It cannot be installed to C:\Program File under Windows, and it will crash directly. It is recommended to install to other non-administrator directories, such as D:\Program Files (x86) . - Under Linux, cookies cannot be stored temporarily, that is, the data will be cleared after the application is closed, and the account will be automatically released. ## Development diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 383a5b5..8ba6e3f 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -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 diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 2f28d0d..b8c66d5 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -52,7 +52,7 @@ "providerShortName": null, "signingIdentity": null }, - "resources": [], + "resources": ["png/weread_32.ico"], "shortDescription": "", "targets": ["deb", "msi", "dmg"], "windows": {