diff --git a/.githooks/pre-commit b/.githooks/pre-commit index a734374..3ba8766 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86cd82d..b734ccf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,7 @@ jobs: -x "exports/*" \ -x "data/*" \ -x "test_data/*" \ + -x "screenshots/*" \ -x "*.md" \ -x "LICENSE" \ -x "*.zip" diff --git a/Makefile b/Makefile index 01f87fc..85bbbb0 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ build: check -x "exports/*" \ -x "data/*" \ -x "test_data/*" \ + -x "screenshots/*" \ -x "Makefile" \ -x "*.md" \ -x "LICENSE" \ diff --git a/screenshots/store_screenshot_1280x800.jpg b/screenshots/store_screenshot_1280x800.jpg new file mode 100644 index 0000000..6af5242 Binary files /dev/null and b/screenshots/store_screenshot_1280x800.jpg differ diff --git a/screenshots/store_screenshot_1280x800.png b/screenshots/store_screenshot_1280x800.png new file mode 100644 index 0000000..55c37d5 Binary files /dev/null and b/screenshots/store_screenshot_1280x800.png differ