chore: remove the JavaScript web client and the Kotlin Android app; the Flutter app replaces both
This commit is contained in:
+26
-8
@@ -12,6 +12,8 @@ git clone https://git.a-wan.net/alan/pipelines.git
|
||||
cd pipelines
|
||||
./install # native: server, authenticated web, CLI, ntfy + login autostart
|
||||
./install --docker # explicit Docker server + ntfy
|
||||
./install --web # rebuild the web app (Docker) after app changes
|
||||
./install --apk # optional: build the Android app (Docker, slower)
|
||||
```
|
||||
|
||||
## Native installation (default)
|
||||
@@ -20,7 +22,7 @@ cd pipelines
|
||||
`scripts/setup-native.py`. It only detects the tools it needs and never installs
|
||||
or upgrades them: **Go (version required by `go.mod`), Python 3.9+, Node.js 18+,
|
||||
git, curl and a C compiler (`cc`/`clang`/`gcc`)**
|
||||
must already be on PATH. The C compiler is required because ntfy stores its cache
|
||||
must already be on PATH, and **Docker** must be running to build the app. The C compiler is required because ntfy stores its cache
|
||||
and auth database in SQLite through the cgo driver `mattn/go-sqlite3`. It also
|
||||
detects an existing `opencode` (required) and `pi` (optional) on PATH and records
|
||||
their absolute paths; it never downloads, installs or upgrades OpenCode or Pi
|
||||
@@ -32,10 +34,25 @@ session. Unsupported platforms and missing tools fail instead of silently
|
||||
installing an unsupervised server. Go downloads dependencies and the pinned ntfy
|
||||
source during a fresh build; the installer does not install system prerequisites.
|
||||
|
||||
**`./install` is the only setup command.** It also copies the dependency-free web
|
||||
client into `<prefix>/lib/web`, configures its authenticated Node proxy and starts
|
||||
all three processes under one login service. No npm install or separate manual
|
||||
`node serve.mjs` step is needed. The default browser URL is
|
||||
**`./install` is the only setup command.** It builds the Flutter web app (`app/`)
|
||||
in a Docker container pinned to `app/.flutter-version`, installs it at
|
||||
`<prefix>/lib/app-web`, configures the authenticated Node proxy (`web/serve.mjs`,
|
||||
copied to `<prefix>/lib/web`) and starts all three processes under one login
|
||||
service. Builds are cached in `~/.cache/pipelines/app-builds` by a digest of the
|
||||
app sources: an unchanged app is reused, a changed one rebuilt. Without Docker
|
||||
the install still completes and the web page says to run `./install --web`.
|
||||
|
||||
The Android app is optional because its build needs the Android SDK and takes
|
||||
longer (on Apple Silicon the x86-64 build image runs under emulation).
|
||||
`./install --apk` builds it in Docker for this installation's web address and
|
||||
offers it at `/updates/` on that address, behind the sign-in, so phones install
|
||||
it from Settings → App updates → Check for updates. Every APK is signed with one
|
||||
key kept in `~/.config/pipelines/android/` (seeded from `~/.android/debug.keystore`
|
||||
when present) so each new build installs over the last.
|
||||
|
||||
`pipelines start`, `restart` and `status` print the server's own startup report
|
||||
(version, API, database, OpenCode, chat backends and harnesses) and the web,
|
||||
web-app and phone-app status. The default browser URL is
|
||||
`http://localhost:8082/` on this computer, or `http://HOST:8082/` on a trusted
|
||||
LAN/VPN (`--web-port` / `--web-host` override it). Setup prints the actual URL.
|
||||
The unauthenticated Go API defaults to **127.0.0.1:8080**; expose only the web
|
||||
@@ -43,9 +60,10 @@ proxy. Use TLS termination or an encrypted VPN for remote access; plain HTTP
|
||||
does not encrypt the sign-in password.
|
||||
|
||||
Existing web credentials in `PIPELINES_WEB_AUTH_FILE`, or
|
||||
`~/.config/pipelines/web-auth.json`, are reused unchanged. A fresh setup generates
|
||||
a private 0600 file there with `password` and a cookie-signing `secret`; read its
|
||||
`password` field locally to sign in (never share the whole file). An invalid or
|
||||
`~/.config/pipelines/web-auth.json`, are reused unchanged. On a new computer
|
||||
setup asks for the sign-in password (8+ characters, typed twice; set
|
||||
`PIPELINES_WEB_PASSWORD` to answer without a terminal) and writes a private 0600
|
||||
file there with it and a generated cookie-signing `secret`. An invalid or
|
||||
non-private existing file stops setup instead of resetting credentials. The
|
||||
service never inherits the test-only `PIPELINES_WEB_AUTH=disabled` bypass.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user