feat: Add single-file Windows executable using Deno#1018
Open
benriemer wants to merge 1 commit intomermaid-js:masterfrom
Open
feat: Add single-file Windows executable using Deno#1018benriemer wants to merge 1 commit intomermaid-js:masterfrom
benriemer wants to merge 1 commit intomermaid-js:masterfrom
Conversation
- Add GitHub Actions workflow to build mmdc.exe using deno compile - Cross-compile from Windows runner to x86_64-pc-windows-msvc target - Upload executable as release asset on tagged releases - Add documentation for standalone Windows executable usage Closes mermaid-js#467
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.
Summary
This PR adds a GitHub Actions workflow to build a single-file Windows executable (.exe) for mermaid-cli using Deno's compile feature.
Problem
Issue #467 requests a single-file Windows executable so non-developers can use mermaid-cli without installing Node.js/npm. The original solution (pkg) was deprecated and never supported ESM modules.
Solution
Use Deno to build the executable:
deno compilepackages all dependencies into a single executablex86_64-pc-windows-msvcChanges
New workflow:
.github/workflows/build-single-file.ymldenoland/setup-denoactiondeno compile --target x86_64-pc-windows-msvcDocumentation: Updated README.md with standalone executable usage
Testing
The workflow can be tested manually or by creating a tag:
Related Issues
Closes #467