🐛 更新默认
This commit is contained in:
@@ -83,7 +83,7 @@ npm run build
|
|||||||
## 打新包
|
## 打新包
|
||||||
|
|
||||||
1. 修改 `src-tauri` 目录下的 `tauri.conf.json` 中的 `url、productName、icon、title、identifier` 这 5 个字段,其中 icon 可以从 icons 目录选择一个,也可以去 [macOSicons](https://macosicons.com/#/) 下载符合产品名称的
|
1. 修改 `src-tauri` 目录下的 `tauri.conf.json` 中的 `url、productName、icon、title、identifier` 这 5 个字段,其中 icon 可以从 icons 目录选择一个,也可以去 [macOSicons](https://macosicons.com/#/) 下载符合产品名称的
|
||||||
2. 关于窗口属性设置,可以在 `tauri.conf.json` 修改 `windows` 属性对应的 `width/height`,是否全屏 `fullscreen`,是否可以调整大小 `resizable`,假如你想适配沉浸式头部,可以将 `transparent` 设置成 `true` 然后找到 Header 元素加一个 `padding-top` 样式即可,不好适配就改成 `false`
|
2. 关于窗口属性设置,可以在 `tauri.conf.json` 修改 `windows` 属性对应的 `width/height`,是否全屏 `fullscreen`,是否可以调整大小 `resizable`,假如想适配沉浸式头部,可以将 `transparent` 设置成 `true` 找到 Header 元素加一个 `padding-top` 样式即可
|
||||||
3. `npm run dev` 本地调试看看效果,此外可以使用 `npm run dev:debug` 进行容器调试
|
3. `npm run dev` 本地调试看看效果,此外可以使用 `npm run dev:debug` 进行容器调试
|
||||||
4. `npm run build` 运行即可打生产包
|
4. `npm run build` 运行即可打生产包
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ npm run build
|
|||||||
## New pack
|
## New pack
|
||||||
|
|
||||||
1. Modify the `tauri.conf.json` in the `src-tauri` directory to include 5 fields `url, productName, icon, title, identifier`, icon can be selected from the `icons` directory or downloaded from [macOSicons](https://macosicons.com/#/) to match the product.
|
1. Modify the `tauri.conf.json` in the `src-tauri` directory to include 5 fields `url, productName, icon, title, identifier`, icon can be selected from the `icons` directory or downloaded from [macOSicons](https://macosicons.com/#/) to match the product.
|
||||||
2. For window property settings, you can modify the `width/height` of the `windows` property in `tauri.conf.json`, whether it is `fullscreen`, whether it is `resizable`, If you want to adapt the immersive header, you can set `transparent` to `true` and then find header element and add the 'padding-top' style.
|
2. For window property settings, you can modify the `width/height` of the `windows` property in `tauri.conf.json`, whether it is `fullscreen`, whether it is `resizable`, If you want to adapt the immersive header, you can set `transparent` to `true` and then find header element and add the `padding-top` style.
|
||||||
3. `npm run dev` for local debugging; `npm run dev:debug` to open the devtools for container debugging.
|
3. `npm run dev` for local debugging; `npm run dev:debug` to open the devtools for container debugging.
|
||||||
4. `npm run build` can be run to package for production.
|
4. `npm run build` can be run to package for production.
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"url": "https://weread.qq.com/",
|
"url": "https://weread.qq.com/",
|
||||||
"transparent": true,
|
"transparent": false,
|
||||||
"fullscreen": false,
|
"fullscreen": false,
|
||||||
"width": 1200,
|
"width": 1200,
|
||||||
"height": 728,
|
"height": 728,
|
||||||
|
|||||||
Reference in New Issue
Block a user