26 lines
467 B
Bash
Executable File
26 lines
467 B
Bash
Executable File
#!/bin/bash
|
|
dir_name=pinmenote-firefox-dev
|
|
archive_name=firefox-dev
|
|
|
|
if [ -e "dist/$archive_name.zip" ]
|
|
then
|
|
echo "release file exists dist/$archive_name.zip"
|
|
exit 1
|
|
fi
|
|
|
|
export NODE_ENV=development
|
|
# swap manifests
|
|
cp manifest/manifest.ff.dev.json src/manifest.json
|
|
|
|
# clean old dir
|
|
rm -r dist/$dir_name
|
|
|
|
# build
|
|
npm run dev:ff
|
|
|
|
# swap manifests back
|
|
cp manifest/manifest.dev.json src/manifest.json
|
|
|
|
# pack build
|
|
cd dist/$dir_name
|
|
zip -r -X ../$archive_name.zip * |