From 75134ed82a205d6b4b073c67a120400a06334f8c Mon Sep 17 00:00:00 2001 From: Wei Zhang Date: Tue, 19 Dec 2023 19:56:09 +0800 Subject: [PATCH] :railway_track: :sparkles: ci: package deb without zst Signed-off-by: Wei Zhang --- .github/workflows/CICD.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index dbf50bbc2..407e1db6b 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -256,6 +256,16 @@ jobs: ## cat "${DPKG_DIR}/DEBIAN/control" # build dpkg fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}" + # build a deb not using zst + # check https://github.com/lsd-rs/lsd/issues/891 + ar x "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}" + # Uncompress zstd files an re-compress them using xz + zstd -d < control.tar.zst | xz > control.tar.xz + zstd -d < data.tar.zst | xz > data.tar.xz + # Re-create the Debian package in /tmp/ + ar -m -c -a sdsd $(echo ${{ steps.vars.outputs.DPKG_NAME }} | sed 's/.deb/_legacy.deb/g') debian-binary control.tar.xz data.tar.xz + # Clean up + rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst fi - name: Publish uses: softprops/action-gh-release@v1