Skip to content

Commit 41db97b

Browse files
author
A Padilla
committed
Add update-pre for checksum-verified GitHub prerelease binaries
1 parent 0a41964 commit 41db97b

20 files changed

Lines changed: 173 additions & 20 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ when running a downloaded installer. Repeating the installer updates atomically
116116
The default selects the newest published release, including prereleases. npm installs below
117117
continue using npm for updates.
118118

119+
Run `ocx update-pre` (or `oxc update-pre`) to install the newest published GitHub prerelease
120+
binary on Linux/macOS. It skips stable releases and verifies SHA-256 before replacement.
121+
Existing standalone installations update in place; npm/source users bootstrap the standalone
122+
commands under `~/.oxc` and can activate them with `. "$HOME/.oxc/env"`.
123+
119124
```bash
120125
npm install -g @bitkyc08/opencodex
121126
ocx start # or `ocx service`

‎docs-site/src/content/docs/fr/getting-started/installation.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ curl -fsSL https://raw.githubusercontent.com/ar4ft/opencodex/refs/heads/main/scr
1717
. "$HOME/.oxc/env"
1818
oxc --version
1919
oxc update
20+
oxc update-pre # GitHub prerelease
2021
oxc restart
2122
```
2223

23-
[Options: --version, --stable, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
24+
[Options: --version, --stable, --prerelease, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
2425

2526
## Prérequis npm
2627

‎docs-site/src/content/docs/getting-started/installation.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ file to use the commands immediately. `oxc`, `ocx`, and `opencodex` are equivale
2424
Requires curl and `sha256sum` or `shasum`. The default selects the newest published release,
2525
including prereleases; macOS signing/notarization is not verified by the installer.
2626

27-
Download the script to use `--version 0.0.9` (bare and `v`-prefixed tags work), `--stable`,
27+
Download the script to use `--version 0.0.9` (bare and `v`-prefixed tags work), `--stable`, `--prerelease`,
2828
`--prefix /absolute/path`, or `--no-modify-path`. `OXC_INSTALL_DIR` and `OXC_VERSION` supply
29-
the default prefix and version. `--stable` refuses prereleases and fails if release classification
29+
the default prefix and version. `--prerelease` (also used by `ocx update-pre`) skips stable releases
30+
and fails if the API cannot confirm a published prerelease. `--stable` refuses prereleases and fails if release classification
3031
is unavailable.
3132

3233
```sh
3334
oxc update # latest GitHub release from ar4ft/opencodex
35+
oxc update-pre # newest published prerelease only
3436
oxc update --stable # production releases only
3537
oxc update --version 0.0.9 # pin a release
3638
oxc restart # refresh a proxy that was running during the update

‎docs-site/src/content/docs/ja/getting-started/installation.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ curl -fsSL https://raw.githubusercontent.com/ar4ft/opencodex/refs/heads/main/scr
1616
. "$HOME/.oxc/env"
1717
oxc --version
1818
oxc update
19+
oxc update-pre # GitHub prerelease
1920
oxc restart
2021
```
2122

22-
[Options: --version, --stable, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
23+
[Options: --version, --stable, --prerelease, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
2324

2425
## npm の前提条件
2526

‎docs-site/src/content/docs/ko/getting-started/installation.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ curl -fsSL https://raw.githubusercontent.com/ar4ft/opencodex/refs/heads/main/scr
1616
. "$HOME/.oxc/env"
1717
oxc --version
1818
oxc update
19+
oxc update-pre # GitHub prerelease
1920
oxc restart
2021
```
2122

22-
[Options: --version, --stable, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
23+
[Options: --version, --stable, --prerelease, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
2324

2425
## npm 사전 요구 사항
2526

‎docs-site/src/content/docs/reference/cli/lifecycle.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,16 @@ if it is not running.
416416

417417
## Updating
418418

419+
### `ocx update-pre [--no-modify-path]`
420+
421+
Install the newest published GitHub prerelease binary from this fork on Linux/macOS, skipping
422+
stable releases and drafts. Downloads are unsigned; the installer verifies SHA-256 and checks
423+
startup before replacing the binary. Existing standalone aliases update their owned prefix.
424+
From npm/source, this command installs standalone aliases under `OXC_INSTALL_DIR` or `~/.oxc`;
425+
activate them with `. "$HOME/.oxc/env"`. Run `oxc restart` after updating a running proxy.
426+
427+
You can also pass `--prerelease` to the [standalone installer](/getting-started/installation/#standalone-install-this-fork).
428+
419429
### `ocx update [--tag latest|preview]`
420430

421431
Standalone installations made by this fork's `install.sh` use `oxc update` (also available as

‎docs-site/src/content/docs/ru/getting-started/installation.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ curl -fsSL https://raw.githubusercontent.com/ar4ft/opencodex/refs/heads/main/scr
1717
. "$HOME/.oxc/env"
1818
oxc --version
1919
oxc update
20+
oxc update-pre # GitHub prerelease
2021
oxc restart
2122
```
2223

23-
[Options: --version, --stable, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
24+
[Options: --version, --stable, --prerelease, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
2425

2526
## Требования для npm
2627

‎docs-site/src/content/docs/tr/getting-started/installation.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ curl -fsSL https://raw.githubusercontent.com/ar4ft/opencodex/refs/heads/main/scr
1717
. "$HOME/.oxc/env"
1818
oxc --version
1919
oxc update
20+
oxc update-pre # GitHub prerelease
2021
oxc restart
2122
```
2223

23-
[Options: --version, --stable, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
24+
[Options: --version, --stable, --prerelease, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
2425

2526
## npm Ön Koşulları
2627

‎docs-site/src/content/docs/zh-cn/getting-started/installation.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ curl -fsSL https://raw.githubusercontent.com/ar4ft/opencodex/refs/heads/main/scr
1616
. "$HOME/.oxc/env"
1717
oxc --version
1818
oxc update
19+
oxc update-pre # GitHub prerelease
1920
oxc restart
2021
```
2122

22-
[Options: --version, --stable, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
23+
[Options: --version, --stable, --prerelease, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
2324

2425
## npm 前置条件
2526

‎docs-site/src/content/docs/zh-tw/getting-started/installation.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ curl -fsSL https://raw.githubusercontent.com/ar4ft/opencodex/refs/heads/main/scr
1616
. "$HOME/.oxc/env"
1717
oxc --version
1818
oxc update
19+
oxc update-pre # GitHub prerelease
1920
oxc restart
2021
```
2122

22-
[Options: --version, --stable, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
23+
[Options: --version, --stable, --prerelease, --prefix, --no-modify-path](/getting-started/installation/#standalone-install-this-fork)
2324

2425
## npm 前置條件
2526

0 commit comments

Comments
 (0)