Files
linkwarden-browser-extension/build.sh
T
2025-01-05 19:08:22 -05:00

22 lines
414 B
Bash
Executable File

#!/usr/bin/env bash
# Install deps
npm install
# Build
npm run build
# Check if --firefox argument was passed
if [ "$1" = "--firefox" ]; then
# Copy to firefox/manifest.json
echo "Built for Firefox..."
cp firefox/manifest.json dist/manifest.json
else
# Copy to dist/manifest.json
echo "Built for Chrome(ium)..."
cp src/manifest.json dist/manifest.json
fi
# Done (for now...)
echo "Done! ✅"