Replies: 1 comment
|
已对照 master(c291e7961a)逐行复核,问题属实,机制如下:
修复方向(任一): 临时规避:打包机在 apps/desktop 下 诚实标注:fs-ext 是在哪次提交被移除的,我没有在本快照里做历史考古;以上结论基于当前树的静态事实。另外 #6612 是同一问题的独立复报,两帖可合并跟进。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
pnpm run package:desktop:win:x64:unsignedfails deterministically at theprepare:dshstep:Root cause
apps/desktop/tests/fixtures/runtime-payload-smoke.mjsstill verifies a dependency that no longer exists in the tree.Commit
d927cbff9("feat(native): add prebuilt Node-API flock support", 2026-09-07) replacedfs-extwith@deepseek-ai/node-addon-systeminpackages/session/session-persistence-jsonl/package.json:The smoke fixture was not updated. Evidence that
fs-extis intentionally gone:package.jsonin the repository declares it, andpnpm-lock.yamlhas nofs-extentry.seekSync/fsExtoccurrences anywhere in the tree are inside the fixture itself.selectDesktopPackageClosure()inapps/desktop/scripts/prepare-package-set.tswalksdependencies/peerDependencies/optionalDependencies, so the package set and the packed dsh runtime correctly contain nofs-ext.The fixture's last change is
fc7abdcfb("feat: 优化 windows 安装包打包", 2026-09-09) — two days after the removal.runtime-file-policy.tsandproject-manager.tsalso still mentionfs-ext, but both are harmless: the former is a pure string filter unit-tested on synthetic paths, and the latter'sallowBuilds: fs-ext: truetargets user-installed external plugins in the desktop profile, not the core runtime payload.Reproduction
Fails deterministically at
prepare:dsh→ runtime payload smoke.Suggested fix
Drop
checkFsExt()fromapps/desktop/tests/fixtures/runtime-payload-smoke.mjs— the function, its call in thetryblock, thefsExt: truefield in the summary log, and the now-unusedcloseSync/openSync/readSyncimports. No coverage is lost: the shipped native capabilities remain exercised bycheckKoffi(FFI),checkSharp,checkHtmlandcheckPty.Verified end-to-end locally on Windows 11 x64, Node v24.18.0, pnpm 11.7.0, commit
c291e79(0.1.5-rc.2): with that check removed, packaging completes and produces a workingdeepseek-harness-0.1.5-rc.2-win-x64.exe(171.7 MB) that installs and launches.Side note on build prerequisites
No Visual Studio / MSVC is actually required for the unsigned Windows target.
node-pty's install script isnode scripts/prebuild.js || node-gyp rebuildand resolves fromprebuilds/win32-x64/;koffiandnode-addon-require-builtinship prebuilt binaries as well. The README's "Visual C++ build tools" requirement only applies to the node-gyp fallback path. Might be worth softening that wording, since it reads as a hard prerequisite for local Windows packaging.All reactions