11
This commit is contained in:
@@ -30,7 +30,7 @@ src-tauri/ # Tauri Rust 与配置
|
||||
|
||||
- `npm run dev` — 仅前端(端口 1420)
|
||||
- `npm run tauri dev` — 桌面开发
|
||||
- `npm run build` / `npm run tauri build` — 构建(前端无 `tsc` 步骤)
|
||||
- `npm run build` / `npm run tauri:build` — 构建桌面端(仅生成 zip 便携包,不生成 MSI/NSIS 安装包;前端无 `tsc` 步骤)
|
||||
|
||||
## 后端 API 约定(pythonbackend)
|
||||
|
||||
|
||||
@@ -42,4 +42,5 @@ alwaysApply: false
|
||||
## 开发注意
|
||||
|
||||
- Vite 固定端口 `1420`(见 `vite.config.js`),与 `tauri.conf.json` 的 `devUrl` 一致
|
||||
- 修改 capabilities 或插件后需重新 `tauri dev` / `tauri build`
|
||||
- 修改 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