fix: use xz compression when building deb package (#230471)
parent
a1c062b862
commit
ba6907515e
|
@ -305,6 +305,11 @@ steps:
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
npm run gulp "vscode-linux-$(VSCODE_ARCH)-build-deb"
|
npm run gulp "vscode-linux-$(VSCODE_ARCH)-build-deb"
|
||||||
|
file_output=$(file $(ls .build/linux/deb/*/deb/*.deb))
|
||||||
|
if [[ "$file_output" != *"data compression xz"* ]]; then
|
||||||
|
echo "Error: unknown compression. $file_output"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "##vso[task.setvariable variable=DEB_PATH]$(ls .build/linux/deb/*/deb/*.deb)"
|
echo "##vso[task.setvariable variable=DEB_PATH]$(ls .build/linux/deb/*/deb/*.deb)"
|
||||||
displayName: Build deb package
|
displayName: Build deb package
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ function buildDebPackage(arch) {
|
||||||
return async () => {
|
return async () => {
|
||||||
await exec(`chmod 755 ${product.applicationName}-${debArch}/DEBIAN/postinst ${product.applicationName}-${debArch}/DEBIAN/prerm ${product.applicationName}-${debArch}/DEBIAN/postrm`, { cwd });
|
await exec(`chmod 755 ${product.applicationName}-${debArch}/DEBIAN/postinst ${product.applicationName}-${debArch}/DEBIAN/prerm ${product.applicationName}-${debArch}/DEBIAN/postrm`, { cwd });
|
||||||
await exec('mkdir -p deb', { cwd });
|
await exec('mkdir -p deb', { cwd });
|
||||||
await exec(`fakeroot dpkg-deb -b ${product.applicationName}-${debArch} deb`, { cwd });
|
await exec(`fakeroot dpkg-deb -Zxz -b ${product.applicationName}-${debArch} deb`, { cwd });
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue