Skip to content

fix(ci): prepare sidecar stub for tauri-build cargo check - #6

Merged
Smirk1921 merged 2 commits into
mainfrom
fix/ci-sidecar-stub
Oct 24, 2026
Merged

Smirk1921 merged 2 commits into
mainfrom
fix/ci-sidecar-stub

Conversation

@Smirk1921

Copy link
Copy Markdown
Owner

问题

main 分支 CI 自 2026-10-07 起全红(坑 44):tauri.conf.json 声明的 externalBin (bin/tts-hub) 按设计被 gitignore(本地 copy-product.mjs 生成),CI 的 cargo check 触发 tauri-build 校验直接报 resource path doesn't exist。v0.2.0 发版是绕过 CI 手动发的。

修复

在 Build (frontend) 与 Cache 之间插一步:复制 runner 自带 node.exe 为 sidecar 占位(check 只验存在性不验内容)。真正打进安装包的 sidecar 仍由本地 copy-product.mjs 生成,release 流程不变。

验收

  • 本 PR CI 绿
  • merge 后 main CI 转绿(18 天首次)
  • 2 个 glib Dependabot PR rebase 后转绿

施工方案:v0.9.1 T1(坑 44)

externalBin bin/tts-hub is gitignored by design (built locally via
copy-product.mjs), so tauri-build failed on CI at cargo check with
'resource path doesn't exist'. Copy the runner's node.exe as a stub:
check only validates existence, not content. Real release sidecar is
still produced locally by copy-product.mjs.
First CI run revealed a second missing path: bundle.resources declares
resources/sidecar (copy-product.mjs output, gitignored) — tauri-build
fails 'resource path resources\sidecar doesn't exist'. Create the dir
with a placeholder file; examples/ and vscode-ext/ are tracked already.
@Smirk1921
Smirk1921 merged commit 96a3583 into main Oct 24, 2026
1 check passed
@Smirk1921
Smirk1921 deleted the fix/ci-sidecar-stub branch October 24, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant