-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcleanup-for-store.sh
More file actions
executable file
·49 lines (38 loc) · 1.24 KB
/
cleanup-for-store.sh
File metadata and controls
executable file
·49 lines (38 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Script to clean up extension before Chrome Web Store submission
# Run this before creating the ZIP file for submission
echo "🧹 Cleaning up extension for Chrome Web Store submission..."
cd "$(dirname "$0")/PolyMetrics"
# Remove .DS_Store files (macOS)
echo "Removing .DS_Store files..."
find . -name ".DS_Store" -type f -delete
# Remove .git directory if exists
if [ -d ".git" ]; then
echo "Removing .git directory..."
rm -rf .git
fi
# Remove .gitignore if exists
if [ -f ".gitignore" ]; then
echo "Removing .gitignore..."
rm -f .gitignore
fi
# Remove source maps if any
echo "Removing source maps..."
find . -name "*.map" -type f -delete
# Remove node_modules if exists
if [ -d "node_modules" ]; then
echo "Removing node_modules..."
rm -rf node_modules
fi
# Remove README.md from build (keep in source)
if [ -f "README.md" ]; then
echo "Note: README.md found - you may want to keep it or remove it"
fi
echo "✅ Cleanup complete!"
echo ""
echo "📦 Next steps:"
echo "1. Create ZIP file of the PolyMetrics folder"
echo "2. Upload to Chrome Web Store Developer Dashboard"
echo "3. Fill in store listing information"
echo "4. Add privacy policy URL (if hosted online)"
echo "5. Add screenshots (at least 1 required)"