From 8133fece0bc942965b07c894a9d5eb5a45aa0718 Mon Sep 17 00:00:00 2001 From: Jon Penwood Date: Wed, 13 Apr 2022 12:04:54 -0500 Subject: [PATCH] Added new install script that works --- .github/workflows/release-current-version.yml | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-current-version.yml b/.github/workflows/release-current-version.yml index c3dea28..3f752ff 100644 --- a/.github/workflows/release-current-version.yml +++ b/.github/workflows/release-current-version.yml @@ -24,7 +24,7 @@ jobs: - name: Create Build id: create_build run: | - npm install && + npm run dev-install && cd .. && tar --exclude="./${{ github.event.repository.name }}/.git" --exclude="./${{ github.event.repository.name }}/.gitignore" --exclude="./${{ github.event.repository.name }}/package-lock.json" --exclude="./${{ github.event.repository.name }}/.github" -czvf "${{ github.event.repository.name }}-${{ steps.package-version.outputs.current-version }}.tgz" "./${{ github.event.repository.name }}" && echo "::set-output name=build_hash::$(sha256sum '${{ github.event.repository.name }}-${{ steps.package-version.outputs.current-version }}.tgz' | grep -oE '^[^ ]*' )" && diff --git a/package.json b/package.json index 23d32fd..8cca8b0 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "name": "CyberChefIntegration", - "version": "3.2.1-beta", + "version": "3.2.2-beta", "main": "./integration.js", "private": true, "scripts": { - "install": "npm install --force --silent cyberchef lodash chi-squared &> /dev/null" + "install": "VERSION=\"3.2.2-beta\" && wget -c \"https://github.com/polarityio/cyberchef/releases/download/${VERSION}/cyberchef-${VERSION}.tgz\" -O - | tar -xz -C /app/polarity-server/integrations/", + "dev-install": "npm install --force --silent cyberchef lodash chi-squared &> /dev/null" } }