2023-01-05 01:48:38 +01:00
|
|
|
#!/bin/bash
|
2023-10-31 18:07:25 +01:00
|
|
|
dir_name=pinmenote-firefox-dev
|
2023-11-01 00:29:12 +01:00
|
|
|
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
|
2023-01-25 00:51:08 +01:00
|
|
|
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 *
|