Files
marqdo/scripts/component-release/install-vendor.sh
T
cflmyandCursor a61f3442bc
ci/woodpecker/push/eco Pipeline is pending
ci/woodpecker/pr/eco Pipeline is pending
ci: complete component release propagation for issue #10
Add authoritative component-release helpers, evidence-aware reconcile with
freshness and root upstream dispatch, least-privilege secrets, image scan
and multi-arch build gates, and pin active component publish workflows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-27 19:30:18 +08:00

25 lines
936 B
Bash
Executable File

#!/usr/bin/env bash
# Copy the authoritative component-release helpers into a consumer repository.
# Usage: scripts/component-release/install-vendor.sh <component-repo-root>
set -euo pipefail
src="$(cd "$(dirname "$0")" && pwd)"
dst_root="${1:?component repository root required}"
dst="$dst_root/scripts/release"
mkdir -p "$dst"
for name in package_source.py write_evidence.py publish_gitea.py notify_root.py; do
cp "$src/$name" "$dst/$name"
chmod +x "$dst/$name"
done
{
echo "# Vendored from marqdo scripts/component-release"
echo "#"
echo "# Do not edit in place across repositories. Change the root copy, re-test,"
echo "# then re-run install-vendor.sh and record the hashes below."
echo "#"
for name in package_source.py write_evidence.py publish_gitea.py notify_root.py; do
hash="$(sha256sum "$dst/$name" | awk '{print $1}')"
echo "# $name sha256=$hash"
done
} >"$dst/README.md"
echo "vendored into $dst"