ble version
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user