Skip to content

Commit

Permalink
🛤️ ✨ ci: package deb without zst
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Zhang <[email protected]>
  • Loading branch information
zwpaper committed Dec 19, 2023
1 parent 0fce899 commit 75134ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75134ed

Please sign in to comment.