refactor: 简化构建脚本并确保产物正确复制

- 移除构建和开发脚本中的冗余bun run命令,直接调用tauri命令
- 在开发配置中添加对复制任务的依赖并指定输出路径,确保构建产物正确复制。
This commit is contained in:
2026-01-22 00:21:27 +08:00
parent 9aec9d2829
commit da2a7391da
2 changed files with 4 additions and 3 deletions

View File

@@ -4,9 +4,9 @@
"private": true,
"type": "module",
"scripts": {
"build": "bun run copy && tauri build",
"build": "tauri build",
"copy": "rm -rf binaries && bun --bun copy.ts",
"dev": "bun run copy && tauri dev"
"dev": "tauri dev"
},
"devDependencies": {
"@effect/schema": "catalog:",