Skip to content

chore(packaging): add npm run desktop:standalone - #108

Merged
bitdan merged 1 commit into
masterfrom
chore/standalone-package
Nov 26, 2026
Merged

bitdan merged 1 commit into
masterfrom
chore/standalone-package

Conversation

@bitdan

@bitdan bitdan commented Nov 26, 2026

Copy link
Copy Markdown
Owner

What changed

  • New npm run desktop:standalone (node scripts/package-gpui.mjs --standalone): builds the release binary and writes target/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.
  • parseOptions and standaloneName are exported from scripts/package-gpui.mjs. A test checks the standalone name against the Windows standalone entry in release-assets.mjs, so the two can't drift apart.
  • TECHNICAL.md lists the new command next to desktop: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:package behaves as before.
  • npm test passes (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

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>
@bitdan
bitdan merged commit f220466 into master Nov 26, 2026
1 check passed
@bitdan
bitdan deleted the chore/standalone-package branch November 26, 2026 08:28
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