Skip to main content

Module selfupdate

Module selfupdate 

Source
Expand description

superfluid self update|list|use|check|install: releases side by side under $SUPERFLUID_HOME/versions, a current link the commands on PATH go through, and the daily check serve runs.

Structs§

Check
$SUPERFLUID_HOME/update-check.json: the last read, the newest release that fit, and the version announced.
Options
Release
Report
What self update did, line by line.
Versions
$SUPERFLUID_HOME/versions: a directory per release, current, previous, and prefix naming the bin directory that links here.

Enums§

Engine
What a release must declare to drive the baseRT engine here.
Installed
Where the running executable came from, which decides who updates it.

Constants§

HELP
HOLD_OFF_DAYS
A release younger than this is not announced by the daily check, so early reports land first.
LISTING_ENV
Where the release listing is read from, for a mirror or a test: a URL or a file.
NO_CHECK_ENV
REPO

Functions§

check_in_background
What serve runs once the server is up: one listing read a day at most, one line per new release.
check_now
Read the listing now and record the newest release that fits here and is past the hold-off.
engine_here
fetch_releases
fits
Whether release drives the engine; compat fetches its compat.json when the asset names alone do not say.
install_from
self install --from <dir> [--prefix <dir>]: an unpacked release placed into the layout and made current; the install script’s last step.
installed_as
list
self list.
listing_source
The release listing to read: SUPERFLUID_RELEASES, else GitHub’s.
newest
The newest release that fits, skipping ones published fewer than hold_off days ago when given.
releases
The releases of the listing with a tarball for target, newest first; drafts and prereleases left out.
run
superfluid self <action> ...; the exit code.
running
running_from
Whether another process runs an executable under dir.
target
The release asset name for this build’s platform.
tick
One round: the cache when not yet due, else the listing; the line to print for a release not yet announced.
update
self update: the newest release that fits, or the one named.
use_version
self use <v>.