Replaced create-zip.sh with pure npm command

This commit is contained in:
Fabio Manganiello 2020-06-26 01:21:06 +02:00
parent 306f7d2833
commit efea2bef15
2 changed files with 1 additions and 13 deletions

View file

@ -26,5 +26,5 @@ npm run build
Generate the extension .zip file:
```bash
./create_zip.sh
npm run build-zip
```

View file

@ -1,12 +0,0 @@
#!/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 ..