Files
linkwarden-browser-extension/build.sh
T
daniel31x13 6dfc3f1e9d small fix
2025-05-03 06:20:00 -04:00

22 lines
416 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 Chromium..."
cp chromium/manifest.json dist/manifest.json
fi
# Done (for now...)
echo "Done! ✅"