Repository navigation
Commit 436c741
C1 + C4: cross-platform release workflow + bcode.sh install script (#13)
* C1 + C4: cross-platform release workflow + bcode.sh install script
Three pieces, intended to land together so a tag push produces a complete
matrix of release assets and the install one-liner becomes self-serve:
1. .github/workflows/release.yml — on `v*` tag push (or workflow_dispatch),
runs build.ts on a Linux runner, Bun cross-compiles every target
(linux x64/arm64 [+baseline +musl], darwin x64/arm64 [+baseline],
windows x64/arm64 [+baseline]), and uploads archives to the matching
GitHub Release. Creates the release as prerelease if it doesn't exist
yet so reruns work via --clobber.
2. packages/opencode/script/build.ts — split the dist subdir name (npm
package id, `@browser-use/browsercode-core-<target>`) from the
release-asset basename (`bcode-<target>`). Archives now write to
`dist/bcode-<target>.{tar.gz,zip}` and the upload glob is
`./dist/bcode-*`. Required so the install script can construct
stable, slash-free asset URLs. Yellow-zone — documented in
memory/browsercode/EXCEPTIONS.md.
3. install.sh — port of opencode's installer. Diffs vs upstream:
APP=bcode, INSTALL_DIR=$HOME/.bcode/bin, repo URL is
browser-use/browsercode, shell-rc marker is `# bcode`, BrowserCode
wordmark + footer text. Adds a uv-on-PATH check that prints a
one-line install hint when missing (the harness needs uv at runtime
for browser_execute) — never auto-installs.
Verified locally: build.ts `--single` for linux-x64 still produces the
correct binary; archive cwd math (`../../../` from
`dist/<scope>/<pkg>-<target>/bin/`) lands archives at
`dist/bcode-<target>.tar.gz`. Typecheck passes. install.sh syntax-clean
under `bash -n`.
Pre-conditions for the install one-liner to work end-to-end (post-merge):
- Repo made public (or install script switches to a private-fetch path).
- DNS for bcode.sh CNAME'd to a static host serving install.sh.
- A v0.0.3 tag pushed to trigger the new workflow.
* Add release workflow for cross-platform CLI builds
* Use TUI wordmark banner (browsercode) in install.sh
---------
Co-authored-by: bcode <bcode@agents.local>1 parent 247b4c3 commit 436c741
3 files changed
Lines changed: 588 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
0 commit comments