-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·28 lines (21 loc) · 782 Bytes
/
build.sh
File metadata and controls
executable file
·28 lines (21 loc) · 782 Bytes
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
#!/bin/bash
# Build script for Favicon Downloader Chrome Extension
echo "🔨 Building Favicon Downloader..."
# Get version from manifest.json
VERSION=$(grep '"version"' manifest.json | sed 's/.*"version": "\(.*\)".*/\1/')
echo "📦 Version: $VERSION"
# Clean and create dist directory
echo "🧹 Cleaning dist directory..."
rm -rf dist
mkdir -p dist
# Copy production files
echo "📋 Copying files..."
cp manifest.json popup.html popup.js content.js styles.css icon16.png icon48.png icon128.png dist/
# Create ZIP file
echo "🗜️ Creating ZIP file..."
cd dist && zip -r ../favicon-downloader-v${VERSION}.zip * && cd ..
# Show result
echo "✅ Build complete!"
echo "📦 Created: favicon-downloader-v${VERSION}.zip"
echo ""
echo "Ready to upload to Chrome Web Store!"