Replaced create-zip.sh with pure npm command
This commit is contained in:
parent
306f7d2833
commit
efea2bef15
2 changed files with 1 additions and 13 deletions
|
@ -26,5 +26,5 @@ npm run build
|
|||
Generate the extension .zip file:
|
||||
|
||||
```bash
|
||||
./create_zip.sh
|
||||
npm run build-zip
|
||||
```
|
||||
|
|
|
@ -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 ..
|
||||
|
Loading…
Reference in a new issue