2022-12-17 22:55:05 +01:00
|
|
|
#!/bin/bash
|
2023-10-31 18:07:25 +01:00
|
|
|
dir_name=pinmenote-chrome-dev
|
|
|
|
archive_name=chrome-dev
|
|
|
|
|
|
|
|
if [ -e "dist/$archive_name.zip" ]
|
|
|
|
then
|
|
|
|
echo "release file exists dist/$archive_name.zip"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-07-02 10:51:57 +02:00
|
|
|
export NODE_ENV=development
|
2023-07-02 10:49:03 +02:00
|
|
|
# swap manifests
|
2024-04-27 02:48:02 +02:00
|
|
|
cp manifest/manifest.dev.json src/manifest.json
|
2023-10-31 18:07:25 +01:00
|
|
|
|
|
|
|
# clean old dir
|
|
|
|
rm -r dist/$dir_name
|
|
|
|
|
2023-07-02 10:49:03 +02:00
|
|
|
# build
|
2023-10-31 18:07:25 +01:00
|
|
|
npm run dev:ch
|
|
|
|
|
2023-07-02 10:49:03 +02:00
|
|
|
# swap manifests back
|
2024-04-27 02:48:02 +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 *
|