From 40eb3591442d5d705871d38a4769b8a193b66406 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..775fe1ff6 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