Package Orbit with Orbit

This commit is contained in:
Delta Cloud Runner committed 2026-11-27 02:18:50 +00:00
1 parent 5a91e87d64
commit 726929f891
2 files changed
+53

No files matched your search

+28
View File
@@ -76,6 +76,34 @@ moon test --target native # semver / manifest unit tests
Linux only for now: arguments come from `/proc/self/cmdline`. It needs `oras`, `tar` and `/bin/sh` on `PATH`.
### Package Orbit with Orbit
From the repo root, build and stage the `orbit` package. The package version
comes from `moon.mod`; publishing is a separate step.
```sh
package_dir=$(sh scripts/package-orbit.sh) &&
_build/native/release/build/main/main.exe publish "$package_dir"
```
This publishes to the configured registry, so run `orbit init <registry>` (or
set `ORBIT_REGISTRY`) first and log in with `oras login <host>` if needed. The
package contains a native Linux binary for the build machine's architecture.
Use the same architecture on the install machine. `oras` and `tar` are still
system prerequisites; the package does not bundle them.
To bootstrap from source, install the published package with the binary you just
built. After adding Orbit's bin directory to `PATH`, use the installed binary
for future upgrades and rollbacks:
```sh
bootstrap=_build/native/release/build/main/main.exe
"$bootstrap" install orbit
eval "$("$bootstrap" env)"
orbit upgrade orbit
# If needed: orbit rollback orbit
```
## Layout
```