|
72 | 72 | ARTIFACT_DIR="${CBM_SMOKE_ARTIFACT_DIR:-}" |
73 | 73 | if [ -n "$ARTIFACT_DIR" ]; then |
74 | 74 | ARTIFACT_DIR="$(cd "$ARTIFACT_DIR" && pwd)" |
75 | | - for required in LICENSE install.sh THIRD_PARTY_NOTICES.md; do |
| 75 | + for required in cbm-integrations.json LICENSE install.sh THIRD_PARTY_NOTICES.md; do |
76 | 76 | [ -s "$ARTIFACT_DIR/$required" ] || { |
77 | 77 | echo "smoke-local: release artifact is missing $required" >&2 |
78 | 78 | exit 2 |
@@ -123,16 +123,20 @@ mkdir -p "$FIXTURE_DIR" "$SMOKE_TEMP_DIR" "$SMOKE_HOME" "$SMOKE_XDG_CONFIG" \ |
123 | 123 | "$SMOKE_APPDATA" "$SMOKE_LOCALAPPDATA" |
124 | 124 | cp "$BINARY" "$FIXTURE_DIR/codebase-memory-mcp" |
125 | 125 | if [ -n "$ARTIFACT_DIR" ]; then |
126 | | - cp "$ARTIFACT_DIR/LICENSE" "$ARTIFACT_DIR/install.sh" \ |
127 | | - "$ARTIFACT_DIR/THIRD_PARTY_NOTICES.md" "$FIXTURE_DIR/" |
| 126 | + cp "$ARTIFACT_DIR/cbm-integrations.json" "$ARTIFACT_DIR/LICENSE" \ |
| 127 | + "$ARTIFACT_DIR/install.sh" "$ARTIFACT_DIR/THIRD_PARTY_NOTICES.md" "$FIXTURE_DIR/" |
128 | 128 | else |
129 | | - cp "$ROOT/LICENSE" "$ROOT/install.sh" "$FIXTURE_DIR/" |
| 129 | + cp "$ROOT/assets/cbm-integrations.json" "$ROOT/LICENSE" "$ROOT/install.sh" "$FIXTURE_DIR/" |
130 | 130 | "$ROOT/scripts/gen-third-party-notices.sh" "$FIXTURE_DIR/THIRD_PARTY_NOTICES.md" |
131 | 131 | fi |
132 | 132 |
|
| 133 | +# The archive must carry cbm-integrations.json — install verifies it against the |
| 134 | +# binary's embedded SHA-256 and fails closed without it. Member set and ORDER |
| 135 | +# mirror scripts/package-release.sh (the Windows single-binary contract locks |
| 136 | +# that order); a fixture that omits it would smoke a release layout we never ship. |
133 | 137 | EXPECTED_ARTIFACT="codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" |
134 | 138 | tar -czf "$FIXTURE_DIR/$EXPECTED_ARTIFACT" -C "$FIXTURE_DIR" \ |
135 | | - codebase-memory-mcp LICENSE install.sh THIRD_PARTY_NOTICES.md |
| 139 | + codebase-memory-mcp cbm-integrations.json LICENSE install.sh THIRD_PARTY_NOTICES.md |
136 | 140 | if [ -n "$SUFFIX" ]; then |
137 | 141 | cp "$FIXTURE_DIR/$EXPECTED_ARTIFACT" \ |
138 | 142 | "$FIXTURE_DIR/codebase-memory-mcp-${OS}-${ARCH}.tar.gz" |
|
0 commit comments