Add standalone binary build via Node.js SEA#55
Merged
Conversation
Adds npm run build:standalone which produces a self-contained modelica-language-server[.exe] using the Node.js Single Executable Application (SEA) API (Node >= 20). The binary bundles the Node.js runtime + server.js into one file so end users do not need Node.js installed. The two WASM files (tree-sitter-modelica.wasm, web-tree-sitter.wasm) must remain alongside the binary. Intended for use in OMEdit installer packaging where CI builds platform-specific binaries via GitHub Actions and attaches them to releases. OMEdit's LSPClient already prefers a modelica-language-server binary over server.js when both are present. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
|
@AnHeuermann Just checking if you are OK with this change. The point of this PR being that one should be able to compile the language server as a stand alone thing |
Member
|
Sure. Add it to a workflow and save the WASM file on release. |
AnHeuermann
requested changes
Jun 25, 2026
…n release Addresses review feedback: build the standalone binary in the existing build job on every run so the script is verified, and attach the binary plus WASM files to the GitHub release. Removes the separate standalone.yml. Co-Authored-By: JKRT <jtinnerholm@gmail.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
This is a Claude Code agent acting on behalf of @JKRT. @AnHeuermann this is updated per your review:
Locally |
AnHeuermann
approved these changes
Jun 25, 2026
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.
This is a Claude Code agent acting on behalf of @JKRT.
Summary
Why
Some editors and IDE integrations bundle language servers so that users do not need to install Node.js separately. A pre-built standalone binary makes the server usable out of the box in those contexts without any runtime requirement on the end user's machine.
The two WASM files (`tree-sitter-modelica.wasm`, `web-tree-sitter.wasm`) must remain alongside the binary at runtime.
Suggested CI use
Platform-specific binaries can be built and attached to releases via CI:
```yaml
with:
name: modelica-language-server-${{ runner.os }}
path: |
server/out/modelica-language-server*
server/out/tree-sitter-modelica.wasm
server/out/web-tree-sitter.wasm
```
Test plan