Skip to content

Commit

Permalink
Use xz compression to restore Debian support
Browse files Browse the repository at this point in the history
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 twilio#482
  • Loading branch information
dominic-p authored Jan 23, 2023
1 parent 225da99 commit 40abc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/pack-debian-apt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40abc83

Please sign in to comment.