Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/macos/Tests/PointerDesignerTests/IdentityTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ final class IdentityTests: XCTestCase {
let rootReadme = try loadText(relativeToThisFile: "../../../../README.md")

XCTAssertTrue(script.contains("Casks apps/macos/Casks homebrew Formula"))
XCTAssertTrue(script.contains("--glob '*.md'"))
XCTAssertTrue(script.contains("--glob '!apps/macos/.build/**'"))
XCTAssertTrue(script.contains("brew install --cask cursor-designer-osx"))
XCTAssertTrue(script.contains("Cursor Designer distribution-boundary check passed."))
XCTAssertTrue(workflow.contains("./scripts/check-distribution-boundary.sh"))
Expand Down
15 changes: 11 additions & 4 deletions scripts/check-distribution-boundary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ if find Casks apps/macos/Casks homebrew Formula \
exit 1
fi

scan_files=(
"README.md"
"apps/macos/README.md"
scan_paths=(
"."
)

rg_args=(
--line-number
--fixed-strings
--glob '*.md'
--glob '!.git/**'
--glob '!apps/macos/.build/**'
)

forbidden_patterns=(
Expand All @@ -30,7 +37,7 @@ forbidden_patterns=(
)

for pattern in "${forbidden_patterns[@]}"; do
if rg --line-number --fixed-strings "$pattern" "${scan_files[@]}"; then
if rg "${rg_args[@]}" "$pattern" "${scan_paths[@]}"; then
echo "ERROR: unverified public distribution instruction found: $pattern" >&2
echo "Stable download and Homebrew claims require a notarized artifact, matching release digest, and manual release evidence." >&2
exit 1
Expand Down
Loading