Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply gzip compression to Win #17

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -72,5 +75,3 @@ jobs:
astgen-macos-arm
astgen-linux
astgen-linux-arm
astgen-linux-uncompressed
astgen-linux-arm-uncompressed
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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"
Expand Down