Repository navigation
chore(packaging): add npm run desktop:standalone - #108
Merged
Merged
Conversation
Builds the release binary and copies the Windows standalone EXE without running cargo-packager, so a local standalone build no longer needs the packager installed. The standalone file name now comes from one helper that a test checks against the release asset list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 changed
npm run desktop:standalone(node scripts/package-gpui.mjs --standalone): builds the release binary and writestarget/release/snap-desk-v<version>-windows-x64-standalone.exe, then stops. It skips the NSIS installer, so cargo-packager doesn't need to be installed. On macOS and Linux it only builds the main binary and prints its path.parseOptionsandstandaloneNameare exported fromscripts/package-gpui.mjs. A test checks the standalone name against the Windows standalone entry inrelease-assets.mjs, so the two can't drift apart.TECHNICAL.mdlists the new command next todesktop:package.Why
Making a standalone EXE locally used to mean running the full packaging script and having cargo-packager installed, even though the standalone EXE is just the release binary copied under its release name.
Notes for review
npm run desktop:packagebehaves as before.npm testpasses (31 tests, including the new one). The command itself hasn't been run end to end yet, since that needs a full release build.🤖 Generated with Claude Code