build: exclude screenshots folder from extension distribution package
This commit is contained in:
@@ -27,8 +27,10 @@ if [ -n "$STAGED_FILES" ]; then
|
||||
while IFS= read -r file; do
|
||||
[ -z "$file" ] && continue
|
||||
|
||||
# Check for forbidden export data files & raw media
|
||||
if [[ "$file" =~ (activities\.csv|activities\.json|exporter_job_info\.json|\.zip$|\.crx$|\.mp4$|\.mov$|\.webm$|\.heic$|\.jpg$|\.jpeg$) ]]; then
|
||||
# Check for forbidden export data files & raw media (allow screenshots/ and icons/)
|
||||
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"
|
||||
ERRORS_FOUND=$((ERRORS_FOUND + 1))
|
||||
fi
|
||||
|
||||
@@ -33,6 +33,7 @@ jobs:
|
||||
-x "exports/*" \
|
||||
-x "data/*" \
|
||||
-x "test_data/*" \
|
||||
-x "screenshots/*" \
|
||||
-x "*.md" \
|
||||
-x "LICENSE" \
|
||||
-x "*.zip"
|
||||
|
||||
@@ -44,6 +44,7 @@ build: check
|
||||
-x "exports/*" \
|
||||
-x "data/*" \
|
||||
-x "test_data/*" \
|
||||
-x "screenshots/*" \
|
||||
-x "Makefile" \
|
||||
-x "*.md" \
|
||||
-x "LICENSE" \
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 150 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 186 KiB |
Reference in New Issue
Block a user