Repository navigation
fix(ci): prepare sidecar stub for tauri-build cargo check - #6
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
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 流程不变。
验收
施工方案:v0.9.1 T1(坑 44)