1111
This commit is contained in:
@@ -31,7 +31,7 @@ alwaysApply: false
|
||||
## 权限(`capabilities/default.json`)
|
||||
|
||||
- 拖动窗口需:`core:window:allow-start-dragging`
|
||||
- 前端标题栏元素使用 `data-tauri-drag-region`(在 `AppTitlebar.vue`)
|
||||
- 前端标题栏元素使用 `data-tauri-drag-region`(在 aiclient_ui 的 `AppTitlebar.vue`)
|
||||
|
||||
## Rust 约定
|
||||
|
||||
@@ -41,6 +41,6 @@ alwaysApply: false
|
||||
|
||||
## 开发注意
|
||||
|
||||
- Vite 固定端口 `1420`(见 `vite.config.js`),与 `tauri.conf.json` 的 `devUrl` 一致
|
||||
前端在 **`../aiclient_ui`** 开发并 **`npm run build:deploy`** 部署到服务器;**`tauri build` 不编译前端**。发布版 WebView 加载 `http://81.71.163.140/images/newyaoyan/`(见 `lib.rs`)。
|
||||
- 修改 capabilities 或插件后需重新 `tauri dev` / `tauri:build`
|
||||
- 发布构建使用 `npm run tauri:build`:`bundle.targets` 为空,跳过 MSI/NSIS;构建结束后由 `src-tauri/scripts/zip-portable.cjs` 生成 `target/release/bundle/zip/*.zip`
|
||||
|
||||
Reference in New Issue
Block a user