From 07aa78ee08ae5e5ec6e4a2c85c6c581bd27840b7 Mon Sep 17 00:00:00 2001 From: Julian Dax Date: Fri, 30 Sep 2022 23:33:05 +0200 Subject: [PATCH] chore: switch to gzip for CI --- .github/workflows/release.yml | 2 +- Cargo.toml | 2 +- npm/getBinary.js | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 791dc0f..2a21d31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -162,7 +162,7 @@ jobs: chmod +x tmp/$pkgname/$BIN_NAME$exe if [ "$exe" = "" ]; then - tar cJf dist/$pkgname.tar.xz -C tmp $pkgname + tar czf dist/$pkgname.tar.gz -C tmp $pkgname else (cd tmp && 7z a -r ../dist/$pkgname.zip $pkgname) fi diff --git a/Cargo.toml b/Cargo.toml index 2647da9..8676087 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_env" -version = "1.1.11" +version = "1.1.12" edition = "2021" license = "Apache-2.0" description ="`json_env` loads an environment variables from a file called `.env.json` in the current directory and starts a subprocess with them." diff --git a/npm/getBinary.js b/npm/getBinary.js index d54e968..f6f8df2 100644 --- a/npm/getBinary.js +++ b/npm/getBinary.js @@ -32,7 +32,7 @@ function getPlatform() { function getBinary() { const platform = getPlatform(); const version = require('../package.json').version; - const extension = platform === 'x86_64-windows' ? 'zip' : 'tar.xz'; + const extension = platform === 'x86_64-windows' ? 'zip' : 'tar.gz'; const url = `https://github.com/brodo/json_env/releases/download/v${version}/json_env-v${version}-${platform}.${extension}`; return new Binary('json_env', url); } diff --git a/package.json b/package.json index 53f8290..29a851d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brodo/json_env", - "version": "1.1.11", + "version": "1.1.12", "description": "json_env is dotenv, but with JSON.", "directories": { "example": "examples"