platypush-webext/create_zip.sh
2020-06-22 01:34:23 +02:00

12 lines
262 B
Bash
Executable file

#!/bin/bash
VERSION=$(cat package.json | grep -e '"version"\s*:\s*"' | head -1 | sed -r -e 's/.*"version"\s*:\s*"([^"]+).*/\1/')
rm -rf dist dist-zip
npm run build
touch dist/style.css
mkdir dist-zip
cd dist
zip -r ../dist-zip/platypush-v$VERSION.zip *
cd ..