feat: cross-platform binary build via @yao-pkg/pkg#116
Closed
cvince wants to merge 1 commit into
Closed
Conversation
- esbuild bundles src/index.ts → build/index.cjs (Node 20, CJS) - @yao-pkg/pkg wraps bundle + Node 20 runtime into single-file binaries - .github/workflows/release-cli.yml builds 5 targets (macos x64/arm64, linux x64/arm64, win x64) on cli-v* tag push and attaches archives + checksums to a GitHub Release. Smoke-tests linux-x64 in python:3.12-slim with no Node installed. - macOS cross-built on Ubuntu via MOZGIII/install-ldid-action; no Mac runner needed. - scripts/release.sh now also pushes a cli-v$VERSION tag to the monorepo, which fires the release workflow. - Local 'bun run build:binary' produces a host-platform binary in packages/cli/bin-pkg/ for development. - docs/cli-binary-distribution.md spec. Closes Phase B of the cross-runtime binary plan.
6 tasks
Contributor
Author
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
Phase B of shipping `capy` as a cross-runtime binary so it can run on
Python / PHP / Ruby / Go deploy targets without Node installed.
This is the CLI subtree of the monorepo PR
capysc/capy#181. The release
workflow itself lives in the monorepo (`.github/workflows/release-cli.yml`)
and is not mirrored here.
all deps inlined)
runtime into single-file binaries for 5 targets: macos x64/arm64,
linux x64/arm64, win x64
`bin-pkg/`
dominates
Reference: dotenvx's release pipeline.
Test plan
`readFileSync` calls hit user files; `open` falls back to system
`xdg-open`)
PR to land first)