diff --git a/README.md b/README.md index 2c53390..dcd3c1d 100644 --- a/README.md +++ b/README.md @@ -71,9 +71,9 @@ npm run build ## 打新包 -1. 修改 `src-tauri` 目录下的 `tauri.conf.json` 中的 `productName、icon、title、identifier` 这 4 个字段,其中新 icon 可以去 [macosicons](https://macosicons.com/#/) 下载并放到 `icons` 目录下即可 +1. 修改 `src-tauri` 目录下的 `tauri.conf.json` 中的 `productName、icon、title、identifier` 这 4 个字段,其中 icon 可以从 icons 目录选择一个,也可以去 [macOSicons](https://macosicons.com/#/) 下载符合产品名称的 2. 修改 `src-tauri/src` 目录下的 `main.rs` 中的 with_url 字段为你需要打包网页的地址 -3. `npm run dev` 本地调试看看效果,此外可以打开 `main.rs` 中 devtools 两处注释(搜索 `_devtools`)进行容器调试 +3. `npm run dev` 本地调试看看效果,此外可以打开 `main.rs` 中 devtools 两处注释(搜索 `_devtools`)进行容器调试,假如你不好适配沉浸式头部,可以将 `.with_titlebar_transparent(true)` 注释掉就好 4. `npm run build` 运行即可打包,假如有打开 devtools 模式,记得注释掉 ## 高级 diff --git a/README_EN.md b/README_EN.md index 262373c..fb0cd3b 100644 --- a/README_EN.md +++ b/README_EN.md @@ -71,9 +71,9 @@ npm run build ## New pack -1. Modify the `tauri.conf.json` in the `src-tauri` directory to include 4 fields `productName, icon, title, identifier`, where icon can be downloaded from [macosicons](https://macosicons.com/#/) and placed in the `icons` directory. +1. Modify the `tauri.conf.json` in the `src-tauri` directory to include 4 fields `productName, icon, title, identifier`, icon can be selected from the `icons` directory or downloaded from [macOSicons](https://macosicons.com/#/) to match the product. 2. Change the with_url field in `main.rs` in the `src-tauri/src` directory to the address of the page you want to package. -3. `npm run dev` for local debugging, and open the devtools comments in `main.rs` (search for `_devtools`) for container debugging. +3. `npm run dev` for local debugging, and open the devtools comments in `main.rs` (search for `_devtools`) for container debugging, if you have trouble adapting the immersive header, just leave out the `.with_titlebar_transparent(true)` comment. 4. `npm run build` can be run to package, if you have devtools mode open, remember to comment it out. ## Advanced diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 1115fec..f9eb185 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -132,7 +132,6 @@ fn main() -> wry::Result<()> { let event_loop = EventLoop::new(); let window = WindowBuilder::new() - .with_title("WeRead") .with_resizable(true) .with_titlebar_transparent(true) .with_fullsize_content_view(true)