Skip to content

Commit ad438db

Browse files
authored
repackage .deb with xz compression (#3157)
1 parent 832a0c0 commit ad438db

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,22 @@ jobs:
9393
- run: yarn gulp debug-release ${{ matrix.releaseArgs }}
9494
if: ${{ inputs.debug_build || matrix.name == 'Android' }}
9595

96+
# Modern Ubuntu builds .deb with ZST compression; however, Debian does not yet support
97+
- name: repack .deb file with xz compression
98+
if: ${{ matrix.name == 'Linux' }}
99+
run: |
100+
set -x
101+
sudo apt install binutils zstd
102+
cd release
103+
debfile=$(find ./ -name "*.deb")
104+
ar x $debfile
105+
zstd -d < control.tar.zst | xz > control.tar.xz
106+
zstd -d < data.tar.zst | xz > data.tar.xz
107+
rm *.deb
108+
rm *.zst
109+
ar -m -c -a sdsd $debfile debian-binary control.tar.xz data.tar.xz
110+
rm debian-binary control.tar.xz data.tar.xz
111+
96112
- name: Publish build artifacts
97113
uses: actions/upload-artifact@v3
98114
with:

0 commit comments

Comments
 (0)