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, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "bun run copy && tauri build", "build": "tauri build",
"copy": "rm -rf binaries && bun --bun copy.ts", "copy": "rm -rf binaries && bun --bun copy.ts",
"dev": "bun run copy && tauri dev" "dev": "tauri dev"
}, },
"devDependencies": { "devDependencies": {
"@effect/schema": "catalog:", "@effect/schema": "catalog:",

View File

@@ -6,7 +6,8 @@
"dependsOn": ["@furtherverse/server#compile"] "dependsOn": ["@furtherverse/server#compile"]
}, },
"dev": { "dev": {
"dependsOn": ["@furtherverse/server#compile"], "dependsOn": ["@furtherverse/server#compile", "copy"],
"outputs": ["src-tauri/target/release/**"],
"with": ["@furtherverse/server#dev"] "with": ["@furtherverse/server#dev"]
} }
} }