pinmenote-extension/bin/build-firefox-dev

26 lines
467 B
Plaintext
Raw Normal View History

2023-01-05 01:48:38 +01:00
#!/bin/bash
2023-10-31 18:07:25 +01:00
dir_name=pinmenote-firefox-dev
archive_name=firefox-dev
2023-10-31 18:07:25 +01:00
if [ -e "dist/$archive_name.zip" ]
then
echo "release file exists dist/$archive_name.zip"
exit 1
fi
2023-01-05 01:48:38 +01:00
export NODE_ENV=development
# swap manifests
2024-04-07 01:03:07 +02:00
cp manifest/manifest.ff.dev.json src/manifest.json
2023-10-31 18:07:25 +01:00
# clean old dir
rm -r dist/$dir_name
2023-01-05 01:48:38 +01:00
# build
npm run dev:ff
2023-10-31 18:07:25 +01:00
2023-01-05 01:48:38 +01:00
# swap manifests back
2024-04-07 01:03:07 +02:00
cp manifest/manifest.dev.json src/manifest.json
2023-10-31 18:07:25 +01:00
# pack build
cd dist/$dir_name
2023-11-01 17:50:18 +01:00
zip -r -X ../$archive_name.zip *