Force deb postinst/prerm perms to 755 during build

Prevents a random build issue where the file permissions would change sometimes
which makes the deb package fail lintian.
This commit is contained in:
Daniel Imms
2016-04-04 16:24:37 -07:00
parent ff216da505
commit db6f2c3a53
+1
View File
@@ -308,6 +308,7 @@ function prepareDebPackage(arch) {
function buildDebPackage(arch) {
var debArch = getDebPackageArch(arch);
return shell.task([
'chmod 755 vscode-' + debArch + '/DEBIAN/postinst ' + 'vscode-' + debArch + '/DEBIAN/prerm',
'mkdir -p deb',
'fakeroot dpkg-deb -b vscode-' + debArch + ' deb/vscode-' + debArch + '.deb',
'dpkg-scanpackages deb /dev/null > Packages'