From bf4098f202629abf0e2afc49d02ddb35145973e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leuth=C3=A4user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Tue, 17 Oct 2023 12:59:51 +0200 Subject: [PATCH] Apply gzip compression to Win --- .github/workflows/pr.yml | 11 ++++------- .github/workflows/release.yml | 13 +++++++------ package.json | 4 ++-- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 96ccd00..b7cdeef 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -30,15 +30,12 @@ jobs: mv astgen-macos-x64 astgen-macos mv astgen-macos-arm64 astgen-macos-arm mv astgen-win-x64.exe astgen-win.exe - - name: Make executable + - name: Compress run: | - chmod +x astgen-macos - chmod +x astgen-macos-arm - chmod +x astgen-linux - chmod +x astgen-linux-arm gzexe astgen-linux gzexe astgen-linux-arm + gzexe astgen-macos + gzexe astgen-macos-arm + gzexe astgen-win.exe ls -lh ./astgen-linux --version - mv astgen-linux~ astgen-linux-uncompressed - mv astgen-linux-arm~ astgen-linux-arm-uncompressed diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56b1ff2..2647262 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,16 +46,19 @@ jobs: mv astgen-macos-x64 astgen-macos mv astgen-macos-arm64 astgen-macos-arm mv astgen-win-x64.exe astgen-win.exe + - name: Compress + run: | + gzexe astgen-linux + gzexe astgen-linux-arm + gzexe astgen-macos + gzexe astgen-macos-arm + gzexe astgen-win.exe - name: Make executable run: | chmod +x astgen-macos chmod +x astgen-macos-arm chmod +x astgen-linux chmod +x astgen-linux-arm - gzexe astgen-linux - gzexe astgen-linux-arm - mv astgen-linux~ astgen-linux-uncompressed - mv astgen-linux-arm~ astgen-linux-arm-uncompressed - name: Set next release version id: taggerFinal uses: anothrNick/github-tag-action@1.61.0 @@ -72,5 +75,3 @@ jobs: astgen-macos-arm astgen-linux astgen-linux-arm - astgen-linux-uncompressed - astgen-linux-arm-uncompressed diff --git a/package.json b/package.json index 595ee86..f8a1406 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@joernio/astgen", - "version": "3.5.0", + "version": "3.6.0", "description": "Generate JS/TS AST in json format with Babel", "exports": "./index.js", "keywords": [ @@ -19,7 +19,7 @@ "yargs": "^17.7.2" }, "scripts": { - "postinstall": "pkg . --no-bytecode --no-native-build --public --compress GZip --targets node18-linux-x64,node18-linux-arm64,node18-macos-x64,node18-win-x64,node18-macos-arm64" + "postinstall": "pkg . --no-bytecode --no-native-build --public --targets node18-linux-x64,node18-linux-arm64,node18-macos-x64,node18-win-x64,node18-macos-arm64" }, "engines": { "node": ">=16.0.0"