Skip to content

Commit fb1b5c6

Browse files
authored
fix: use xz compression when building deb package (microsoft#230480)
1 parent 954cbec commit fb1b5c6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build/azure-pipelines/linux/product-build-linux.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,11 @@ steps:
305305
- script: |
306306
set -e
307307
npm run gulp "vscode-linux-$(VSCODE_ARCH)-build-deb"
308+
file_output=$(file $(ls .build/linux/deb/*/deb/*.deb))
309+
if [[ "$file_output" != *"data compression xz"* ]]; then
310+
echo "Error: unknown compression. $file_output"
311+
exit 1
312+
fi
308313
echo "##vso[task.setvariable variable=DEB_PATH]$(ls .build/linux/deb/*/deb/*.deb)"
309314
displayName: Build deb package
310315

build/gulpfile.vscode.linux.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function buildDebPackage(arch) {
128128
return async () => {
129129
await exec(`chmod 755 ${product.applicationName}-${debArch}/DEBIAN/postinst ${product.applicationName}-${debArch}/DEBIAN/prerm ${product.applicationName}-${debArch}/DEBIAN/postrm`, { cwd });
130130
await exec('mkdir -p deb', { cwd });
131-
await exec(`fakeroot dpkg-deb -b ${product.applicationName}-${debArch} deb`, { cwd });
131+
await exec(`fakeroot dpkg-deb -Zxz -b ${product.applicationName}-${debArch} deb`, { cwd });
132132
};
133133
}
134134

0 commit comments

Comments
 (0)