ble version

This commit is contained in:
2026-10-16 07:19:06 +03:00
parent 32abb8bf0a
commit f74d52d39d
65 changed files with 3835 additions and 143 deletions
@@ -5,8 +5,10 @@
# Produces dist/buttontask-<version>.tar.gz containing:
# ButtonTask (the compiled binary)
# webconfig/ (the web configurator + scripts)
# collector/ (BLE GATT collector, if present in the repo)
# manifest.json ({"version": ..., "created": ...})
# and prints the package's sha256 (paste it into the web UI for integrity).
# Note: new systemd units / apt packages still require a full deploy .tgz.
#
# Usage:
# make-package.sh <version> [build-dir] [out-dir]
@@ -33,6 +35,12 @@ cp -r "$REPO_ROOT/webconfig" "$STAGE/webconfig"
# Drop dev artefacts from the packaged webconfig.
rm -rf "$STAGE/webconfig/__pycache__" "$STAGE/webconfig/.webconfig.secret"
if [ -d "$REPO_ROOT/collector" ]; then
cp -r "$REPO_ROOT/collector" "$STAGE/collector"
rm -rf "$STAGE/collector/__pycache__" "$STAGE/collector/tests/__pycache__"
find "$STAGE/collector" -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true
fi
cat > "$STAGE/manifest.json" <<EOF
{
"version": "$VERSION",