From 422647e7898b8df67cd11f8fb060aec23dec84aa Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Wed, 14 Oct 2026 22:20:15 +0200 Subject: 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 --- packaging/deb/meshbay-cli/DEBIAN/prerm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 packaging/deb/meshbay-cli/DEBIAN/prerm (limited to 'packaging/deb/meshbay-cli/DEBIAN/prerm') diff --git a/packaging/deb/meshbay-cli/DEBIAN/prerm b/packaging/deb/meshbay-cli/DEBIAN/prerm new file mode 100755 index 0000000..96e5930 --- /dev/null +++ b/packaging/deb/meshbay-cli/DEBIAN/prerm @@ -0,0 +1,18 @@ +#!/bin/sh +set -e + +# The client's files live in meshbay-common's venv, whose own cleanup runs only +# after this package is gone: the bytecode compiled next to them is removed +# here, or dpkg cannot remove the directories it sits in. +case "$1" in + remove|upgrade|deconfigure) + site=$(echo /opt/meshbay-common/venv/lib/python3.*/site-packages) + while IFS= read -r entry; do + [ -n "$entry" ] && [ -d "$site/$entry" ] || continue + find "$site/$entry" -depth -type d -name __pycache__ \ + -exec rm -rf {} + 2>/dev/null || true + done < /opt/meshbay-cli/site-packages.list + ;; +esac + +#DEBHELPER# -- cgit v1.2.3