Repository navigation
Ship the pinned DeepSeek runtime with the Windows app - #404
Merged
Merged
Conversation
This PC's DeepSeek harness needed Node.js and a hand-built runtime. Windows builds now ship the pinned Node.js and the DeepSeek Harness packages beside the app, built by one script and pruned like the macOS bundle, so choosing DeepSeek works on a fresh PC. - scripts/vendor-deepseek.ps1 checks the pinned Node.js zip against its SHA-256, runs npm ci without package scripts, prunes with prune-deepseek.ps1, and stamps the result with the script and lockfile hashes. - scripts/prune-deepseek.ps1 ports the macOS prune.py: it keeps the packages the profile loads and drops sources, maps, declarations, docs and other platforms' prebuilds (199 MB). - The csproj always copies this-pc.patch.yml and deepseek-live-text.mjs into DeepSeekRuntime; a vendored build used to drop them. - ThisPcDeepSeek.Find() tries AGENT_S_DSH_RUNTIME (dev), then the bundled folder, then the data folder, and only then a Node.js the person installed. - windows-app.yml and windows-release.yml vendor the runtime before publishing, with no new actions so actions.lock is unchanged. - README documents the shipped runtime and the development build step. Tested: the pruned runtime runs `node lib/bin.js --version` -> 0.2.2-rc.5; UI Automation on a fresh publish shows no install prompt with the bundled folder and the DeepSeek install prompt when it is renamed away; 405 Core assertions pass.
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.
What
This PC's DeepSeek harness no longer asks people to install Node.js. Windows builds now ship the pinned Node.js 24.22.3 and the pinned
@deepseek-ai/dshpackages inDeepSeekRuntime\besideAgentS.Windows.exe, built by one script and pruned like the macOS bundle.scripts/vendor-deepseek.ps1downloads the pinned Node.js zip, verifies its SHA-256 per RID, runsnpm cionDeepSeekRuntime/package-lock.jsonwith--ignore-scripts, prunes, and stamps the folder with the script, prune script and lockfile hashes.scripts/prune-deepseek.ps1is the Windows port of the macOSprune.py: keeps the packagespackages.txtlists and drops sources, maps, declarations, docs and other platforms' prebuilds. Result: 199 MB (90 MB of itnode.exe).AgentS.Windows.csprojalways copiesthis-pc.patch.ymlanddeepseek-live-text.mjsintoDeepSeekRuntime. Before this, a vendored build dropped both, so a shipped runtime would have been unusable.ThisPcDeepSeek.Find()now triesAGENT_S_DSH_RUNTIME(Dev builds), then the bundled folder, then%LOCALAPPDATA%\Simular\<channel>\DeepSeekRuntime, and only then a Node.js the person installed with the packages in the data folder. Installs set up with the old README keep working.windows-app.ymlandwindows-release.ymlrun the vendor script before publishing. No newuses:entries, soactions.lockis unchanged; the app workflow timeout goes 25 → 35 minutes.Testing
publish\DeepSeekRuntime\bin\node.exe node_modules/@deepseek-ai/dsh/lib/bin.js --version→0.2.2-rc.5(exit 0).dotnet publishoutput containsDeepSeekRuntime\{bin\node.exe, node_modules\@deepseek-ai\dsh, this-pc.patch.yml, deepseek-live-text.mjs, package.json}(226 MB on disk).DeepSeekRuntimerenamed away: the DeepSeek install prompt appears (positive control);AgentS.Core.Tests: 405 assertions pass.ds-bundle-dialog.png,ds-no-runtime-dialog.png.Worth knowing
The installer and CI artifact grow by roughly the compressed runtime (about 65–70 MB). That is the cost of shipping an offline runtime; the alternative (install Node +
npm cion first use) is what this change removes.