build: exclude screenshots folder from extension distribution package

This commit is contained in:
2026-08-23 14:54:35 -07:00
parent 8cde6f1034
commit d8e734abe5
5 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -27,8 +27,10 @@ if [ -n "$STAGED_FILES" ]; then
while IFS= read -r file; do while IFS= read -r file; do
[ -z "$file" ] && continue [ -z "$file" ] && continue
# Check for forbidden export data files & raw media # Check for forbidden export data files & raw media (allow screenshots/ and icons/)
if [[ "$file" =~ (activities\.csv|activities\.json|exporter_job_info\.json|\.zip$|\.crx$|\.mp4$|\.mov$|\.webm$|\.heic$|\.jpg$|\.jpeg$) ]]; then if [[ "$file" =~ ^(screenshots/|icons/) ]]; then
: # Allowed store & UI asset directory
elif [[ "$file" =~ (activities\.csv|activities\.json|exporter_job_info\.json|\.zip$|\.crx$|\.mp4$|\.mov$|\.webm$|\.heic$|\.jpg$|\.jpeg$) ]]; then
echo -e "${RED}❌ [DATA LEAK BLOCKED] Staged forbidden export/media file:${NC} $file" echo -e "${RED}❌ [DATA LEAK BLOCKED] Staged forbidden export/media file:${NC} $file"
ERRORS_FOUND=$((ERRORS_FOUND + 1)) ERRORS_FOUND=$((ERRORS_FOUND + 1))
fi fi
+1
View File
@@ -33,6 +33,7 @@ jobs:
-x "exports/*" \ -x "exports/*" \
-x "data/*" \ -x "data/*" \
-x "test_data/*" \ -x "test_data/*" \
-x "screenshots/*" \
-x "*.md" \ -x "*.md" \
-x "LICENSE" \ -x "LICENSE" \
-x "*.zip" -x "*.zip"
+1
View File
@@ -44,6 +44,7 @@ build: check
-x "exports/*" \ -x "exports/*" \
-x "data/*" \ -x "data/*" \
-x "test_data/*" \ -x "test_data/*" \
-x "screenshots/*" \
-x "Makefile" \ -x "Makefile" \
-x "*.md" \ -x "*.md" \
-x "LICENSE" \ -x "LICENSE" \
Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB