From efea2bef157bc835e8c9423425cb5e958247c3a1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 26 Jun 2020 01:21:06 +0200 Subject: [PATCH] Replaced create-zip.sh with pure npm command --- README.md | 2 +- create_zip.sh | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100755 create_zip.sh diff --git a/README.md b/README.md index ec572c0..c66282f 100644 --- a/README.md +++ b/README.md @@ -26,5 +26,5 @@ npm run build Generate the extension .zip file: ```bash -./create_zip.sh +npm run build-zip ``` diff --git a/create_zip.sh b/create_zip.sh deleted file mode 100755 index f5b0a32..0000000 --- a/create_zip.sh +++ /dev/null @@ -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 .. -