garage44.eu/jeroen/pinnacle

logclone: git clone https://garage44.eu/jeroen/pinnacle.git

.. /tools/deploy/store.sh

raw

#!/bin/bash
# The Store's apps, ARM's and a PC's, and the system for each board whose
# kernel hands over to another (docs/updates.md), as the package source
# `midas deploy pinnacle-apps` publishes after every landing at
# https://pinnacle-os.eu/store/pinnacle/ (docs/store.md). Writes dist/store/:
# catalog, packages/<name>.ppa (unsigned: the deploy host signs them with the
# Store's key, which never reaches a node) and blobs/, the same in pc/, and
# in system/<board>/ (a PC's in pc/system/pc/).
#
# The version is the number of commits on main: it only grows, and the Store
# offers an update when it differs from the one installed (a system: when it
# is greater than the one running).
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
version="$(git rev-list --count HEAD)"
cargo xtask package-apps dist/store "$version"
cargo xtask package-system dist/store "$version"
test -s dist/store/catalog && test -s dist/store/pc/catalog && test -s dist/store/system/qemu-virt/catalog &&
  test -s dist/store/pc/system/pc/catalog