mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
修 src/ 后 build 出来的 .app 里 sidecar 还是旧代码的诡异问题 —— Bun.build/Tauri bundler 某层缓存把 desktop/src-tauri/binaries/ 里的 旧 sidecar binary 复用进了新 .app,即便删掉 .app 也救不回来,因为 binary 源目录不在 .app 里。 加 3 道保险: - 硬删 sidecar 源 binary + Tauri bundle + 前端 dist 目录 - 显式跑 bun run build + bun run build:sidecars(set -e 会捕获失败) - tauri build 用 --config 覆盖 beforeBuildCommand 为 no-op,避免 build:sidecars 被重复执行浪费 ~10s Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>