1 parent
639362fbf5
commit
bdd69f0aad
101 files changed
+22691
-531
No files matched your search
+66
-2
@@ -1,8 +1,8 @@
|
||||
# Linux installer layout
|
||||
|
||||
`install.sh` and `uninstall.sh` are copied into each Linux release payload.
|
||||
`service/echoion.service.in` is rendered by the installer for user or system
|
||||
systemd scope. `tests/installer_test.sh` exercises portable installation,
|
||||
The installer renders the bot service plus the updater service/timer for user or
|
||||
system systemd scope. `tests/installer_test.sh` exercises portable installation,
|
||||
service opt-in, rollback, tamper protection, preservation, and purge behavior.
|
||||
System-scoped payloads are normalized to root ownership. Registered-service
|
||||
prefixes require a trusted path not writable by other identities. Purge uses
|
||||
@@ -14,12 +14,76 @@ Self-contained portable installs add a managed `echoion` launcher and relative
|
||||
install metadata, allowing a service-free tree to be moved and uninstalled as
|
||||
one directory.
|
||||
|
||||
The default installed tree is:
|
||||
|
||||
```text
|
||||
<prefix>/
|
||||
current -> versions/<version>
|
||||
versions/<version>/
|
||||
bin/ echoiond and echoion-updater
|
||||
lib/ Core and dynamic dependency closure
|
||||
service/ service templates
|
||||
share/echoion/ web, config template, licenses, validation tool
|
||||
bootstrap-plugins/ immutable first-party plugin artifacts
|
||||
manifest.json
|
||||
libexec/updater/<installer-version>/
|
||||
bin/echoion-updater stable installer-managed privileged helper
|
||||
lib/ private dynamic dependency closure
|
||||
config/
|
||||
plugins.d/ per-plugin JSON configuration, preserved on upgrade
|
||||
state/
|
||||
plugins/.managed/ versioned managed plugins and current links
|
||||
plugins/data/ plugin-owned persistent data, preserved on upgrade
|
||||
cache/ logs/ incoming/
|
||||
install.json .echoion-install
|
||||
install.sh uninstall.sh
|
||||
echoion portable launcher (portable mode)
|
||||
```
|
||||
|
||||
Payload validation is data-only: the installer runs the bundled Python manifest
|
||||
validator and never executes the daemon, Core, plugins, or updater. The updater
|
||||
also never performs network I/O or starts a service. It consumes bounded typed
|
||||
requests written below `state/updates`, with a root-owned system timer providing
|
||||
the privileged activation boundary. The timer executes only a fixed versioned
|
||||
helper and private library closure in `libexec`, never candidate code or
|
||||
libraries below `current`. Runtime activation remains
|
||||
pending until a daemon health commit. Helper passes inside the durable grace
|
||||
period preserve it and prioritize a matching commit; after the deadline an
|
||||
unconfirmed candidate is rolled back. Retention counts only committed healthy
|
||||
versions in addition to the active release.
|
||||
|
||||
First-party URL shorteners ship as immutable bootstrap artifacts in each
|
||||
release. During installation they are copied into
|
||||
`state/plugins/.managed/<id>/versions/<plugin-version>/` and a missing
|
||||
`current` link is initialized. Upgrades add new immutable plugin versions
|
||||
without replacing an existing `current` selection, per-plugin configuration,
|
||||
or plugin data. The
|
||||
operation is idempotent and participates in installer rollback. The service and
|
||||
portable launcher expose only the active release's bundled shared-library
|
||||
directory through `LD_LIBRARY_PATH`; release builds keep `BUILD_SHARED_LIBS=ON`
|
||||
and `ECHOION_STATIC_LINK=OFF`. Installed configurations use the relocatable
|
||||
`./share/echoion/web` asset path; systemd units and the portable launcher set
|
||||
the active release as their working directory. An upgrade rewrites only the
|
||||
exact legacy installer default `./web`; custom web roots remain untouched and
|
||||
the migration participates in transaction rollback.
|
||||
|
||||
Create publishable artifacts from the repository root:
|
||||
|
||||
```bash
|
||||
scripts/release.sh --version 1.2.3
|
||||
```
|
||||
|
||||
For a coordinated pre-publication build, add `--void-source ../VoidLibrary`
|
||||
and `--void-teamspeak-source ../VoidTeamspeak`. Container builds mount these
|
||||
explicit source overrides read-only; published releases use the pinned remote
|
||||
versions.
|
||||
|
||||
The default command uses the version-pinned release toolchain container and
|
||||
does not start the bot. Installation flags and data layouts are documented in
|
||||
the root README.
|
||||
|
||||
Use `scripts/release.sh --update-url URL` to add an unsigned feed payload to the
|
||||
release checksums. `scripts/generate-update-feed.py` can additionally produce an
|
||||
Ed25519-signed envelope from a key held outside the repository. The generator
|
||||
also accepts `--component core` and `--component plugin --artifact-id ID` for
|
||||
independently published Core and managed-plugin artifacts.
|
||||
Reference in new issue
Block a user