fix: use xz compression when building deb package (#230471)
This commit is contained in:
Родитель
a1c062b862
Коммит
ba6907515e
|
@ -305,6 +305,11 @@ steps:
|
|||
- script: |
|
||||
set -e
|
||||
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)"
|
||||
displayName: Build deb package
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ function buildDebPackage(arch) {
|
|||
return async () => {
|
||||
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(`fakeroot dpkg-deb -b ${product.applicationName}-${debArch} deb`, { cwd });
|
||||
await exec(`fakeroot dpkg-deb -Zxz -b ${product.applicationName}-${debArch} deb`, { cwd });
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче