mirror of
https://github.com/linkwarden/browser-extension.git
synced 2026-06-23 04:10:26 +00:00
22 lines
416 B
Bash
Executable File
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! ✅"
|