diff --git a/README.md b/README.md index c87718b..9d06124 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,13 @@ custom scripts, and attach hooks to events generated by remote Platypush systems ## Installation -Default installation (requires npm): +Generate the extension .zip file: + +```bash +./create_zip.sh +``` + +Production installation (requires npm): ```bash npm run build diff --git a/create_zip.sh b/create_zip.sh new file mode 100755 index 0000000..f5b0a32 --- /dev/null +++ b/create_zip.sh @@ -0,0 +1,12 @@ +#!/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 .. +