提交 f3861c64 编写于 作者: D Daniel Imms

Use applicationName for build dirs

上级 274da234
......@@ -264,7 +264,7 @@ function getEpochTime() {
function prepareDebPackage(arch) {
var binaryDir = '../VSCode-linux-' + arch;
var debArch = getDebPackageArch(arch);
var destination = '.build/linux/deb/' + debArch + '/code-' + debArch;
var destination = '.build/linux/deb/' + debArch + '/' + product.applicationName + '-' + debArch;
var packageRevision = getEpochTime();
return function () {
......@@ -318,9 +318,9 @@ function prepareDebPackage(arch) {
function buildDebPackage(arch) {
var debArch = getDebPackageArch(arch);
return shell.task([
'chmod 755 code-' + debArch + '/DEBIAN/postinst ' + 'code-' + debArch + '/DEBIAN/prerm',
'chmod 755 ' + product.applicationName + '-' + debArch + '/DEBIAN/postinst ' + product.applicationName + '-' + debArch + '/DEBIAN/prerm',
'mkdir -p deb',
'fakeroot dpkg-deb -b code-' + debArch + ' deb',
'fakeroot dpkg-deb -b ' + product.applicationName + '-' + debArch + ' deb',
'dpkg-scanpackages deb /dev/null > Packages'
], { cwd: '.build/linux/deb/' + debArch});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册