From 40abc83cef75e2b8b5d2223f0ae2c4ec1988a9e4 Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 23 Jan 2023 11:23:27 -0800 Subject: [PATCH] Use xz compression to restore Debian support The default compression on deb packages seems to have changed to zstd. Unfortunately, Debian does not support zstd (yet), so this specifies a friendlier format. Fixes #482 --- .github/scripts/pack-debian-apt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/pack-debian-apt.js b/.github/scripts/pack-debian-apt.js index a786f038c..c1f8c658e 100644 --- a/.github/scripts/pack-debian-apt.js +++ b/.github/scripts/pack-debian-apt.js @@ -81,7 +81,7 @@ PATH=$PATH:$PWD/bin eval $(PATH=$PATH:$PWD/bin node -p "require('./package').scr await qq.chmod([workspace, 'usr/lib', config.dirname, 'bin', config.bin], 0o755); await qq.chmod([workspace, 'DEBIAN/postinst'], 0o755); await qq.x(`ln -s "../lib/${config.dirname}/bin/${config.bin}" "${workspace}/usr/bin/${pjson.oclif.bin}"`); - await qq.x(`dpkg --build "${workspace}" "${qq.join(dist, debArch(arch), `${versionedDebBase}.deb`)}"`); + await qq.x(`dpkg --build --compression=xz "${workspace}" "${qq.join(dist, debArch(arch), `${versionedDebBase}.deb`)}"`); } try { // fetch existing Packages file which needs to be modified for new version