diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-14 22:20:15 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-14 22:20:15 +0200 |
| commit | 422647e7898b8df67cd11f8fb060aec23dec84aa (patch) | |
| tree | 7ecca0e8df1bc8a7d26cf4b471bd44906dd9cfd1 /packaging/deb/meshbay-cli/DEBIAN/postinst | |
| parent | 28c88908b88c58cba4de08710f6bb268ede02d57 (diff) | |
| download | meshbay-422647e7898b8df67cd11f8fb060aec23dec84aa.tar.gz | |
feat(cli): meshbay-cli, a command-line client for members
Signs in to the hub, lists the account's groups and their folders, and
downloads and uploads files directly with each group's node, end-to-end
encrypted. With no argument it opens a two-pane interactive mode (Textual).
Session and device keys are kept encrypted under the system's key storage,
or a 0600 key file where there is none; node keys are pinned at first
contact; a new machine links as a device.
Packaged on its own on Linux (deb and rpm, on meshbay-common's venv, with a
man page generated from the parser) and frozen next to meshbay-node in the
full Windows installer, not the light one, with a self-test the build runs.
client/keys.py ports keyderive.js and is LGPL like it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packaging/deb/meshbay-cli/DEBIAN/postinst')
| -rwxr-xr-x | packaging/deb/meshbay-cli/DEBIAN/postinst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packaging/deb/meshbay-cli/DEBIAN/postinst b/packaging/deb/meshbay-cli/DEBIAN/postinst new file mode 100755 index 0000000..e09d713 --- /dev/null +++ b/packaging/deb/meshbay-cli/DEBIAN/postinst @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + +# The client runs as an unprivileged user, who cannot write bytecode into +# /opt: compiled here once, or every run compiles Textual again in memory. +case "$1" in + configure) + if command -v py3compile >/dev/null 2>&1; then + site=$(echo /opt/meshbay-common/venv/lib/python3.*/site-packages) + while IFS= read -r entry; do + [ -d "$site/$entry" ] && py3compile "$site/$entry" 2>/dev/null || true + done < /opt/meshbay-cli/site-packages.list + fi + ;; +esac + +#DEBHELPER# |