Skip to content

feat(desktop): bundle httui-lsp language server in the release#78

Merged
gandarfh merged 2 commits into
mainfrom
feat/bundle-lsp
Jun 11, 2026
Merged

feat(desktop): bundle httui-lsp language server in the release#78
gandarfh merged 2 commits into
mainfrom
feat/bundle-lsp

Conversation

@gandarfh

Copy link
Copy Markdown
Member

What

Ships the httui-lsp language server in the desktop bundle so installed apps (cask/.deb/.rpm) get diagnostics, typed hovers and field completion — until now the server only existed through a dev symlink.

  • prepare-bundle-bins.sh stages httui-lsp-<triple>: from HTTUI_LSP_BUNDLE_BIN (local builds) or downloaded from the pinned httuicom/httui-lang release (v0.1.0). Hard failure on a missing asset; Windows targets skip the server (the desktop degrades gracefully without it — tauri.windows.conf.json drops it from externalBin).
  • lsp_sidecar resolution: HTTUI_LSP_BIN → bundled sibling next to the executable (release builds only — debug keeps resolving through PATH so dev never picks up a stale staged copy) → PATH.
  • CI stages a third placeholder for the tauri-build validator.
  • make build fix: with two npm run layers the inner npm swallowed --bundles, so tauri received build app.

Validation

Local end-to-end on macOS arm64: download path exercised by make build, httui.app/Contents/MacOS/httui-lsp present and answering the initialize handshake, and the app installed in /Applications spawns the bundled binary (/Applications/httui.app/Contents/MacOS/httui-lsp --db …). 112 tests in the tauri crate (sibling resolution covered), clippy, actionlint and shellcheck green.

@gandarfh
gandarfh force-pushed the feat/bundle-lsp branch 2 times, most recently from 34e45a5 to c25708c Compare June 11, 2026 00:51
@gandarfh
gandarfh merged commit e0b35dd into main Jun 11, 2026
5 checks passed
@gandarfh
gandarfh deleted the feat/bundle-lsp branch June 11, 2026 01:12
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