Files
marqdo-site/scripts/prepare-example.sh
cflmy 8f074e9258
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy-edgeone Pipeline failed
feat(site): consume the verified root projection and ship /data with production
- build:release reads the immutable root projection from the root Release
  assets (MARQDO_DATA_RELEASE) or the production origin, verifies it against
  MARQDO_DATA_ROOT_SHA, and deploys the same pointer/snapshot under /data/;
- production pipeline runs prepare-example + build:release; the manual trigger
  supplies the accepted root commit and release base, failing closed without them;
- verify-dist enforces /data consistency in release builds and absence in safe
  builds; verify-deploy probes the pointer, snapshot, both product offers and the
  MQDH download entry;
- pin the site example and evidence to the accepted CLI v3.0.0-rc.7 and document
  the MQDH beta install path in the quick start;
- drop the temporary screenshot helper and keep only durable baseline facts in
  docs/BASELINE.md; progress lives in the repository issues.
2026-12-02 17:27:49 +08:00

26 lines
1.1 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
work=$(mktemp -d)
trap 'rm -rf -- "$work"' EXIT
cli_file=marqdo-3.0.0-rc.7-x86_64-unknown-linux-gnu.tar.gz
view_file=marqdo-view-0.3.0-x86_64-unknown-linux-gnu.tar.gz
forge=https://git.cflmy.cn/cflmy
fetch() {
curl --fail --silent --show-error --proto '=https' --max-time 90 "$1" -o "$2"
}
fetch "$forge/marqdo-cli/releases/download/v3.0.0-rc.7/$cli_file" "$work/$cli_file"
fetch "$forge/marqdo-view/releases/download/v0.3.0/$view_file" "$work/$view_file"
(
cd "$work"
printf '%s %s\n' \
'10714820c9620b1b7b0da59e8d3930fc71b769a722aa80ede6fa889659de4613' "$cli_file" \
'1cfb319ea0be7215f95e153a3d0f9bb74da1754ac83f77c366d768d37440a0b1' "$view_file" | sha256sum --check
mkdir cli view
tar -xzf "$cli_file" -C cli --strip-components=1
tar -xzf "$view_file" -C view --strip-components=1
test "$(cat cli/SOURCE_SHA)" = '63562d8ff5b40334366761ff4d3644d0dd5b458d'
test "$(cat view/SOURCE_SHA)" = '04f3a0e9e5dcbf81166c54a993a44c27fa8ed642'
)
node scripts/verify-example.mjs "$work/cli/marqdo" "$work/view/bin/marqdo-view"