Skip to content

Commit 5ccd2ff

Browse files
committed
Use app name not 'code' in deb/rpm files
Fixes microsoft#6547
1 parent b564e14 commit 5ccd2ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build/gulpfile.vscode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function buildDebPackage(arch) {
320320
return shell.task([
321321
'chmod 755 code-' + debArch + '/DEBIAN/postinst ' + 'code-' + debArch + '/DEBIAN/prerm',
322322
'mkdir -p deb',
323-
'fakeroot dpkg-deb -b code-' + debArch + ' deb/code-' + debArch + '.deb',
323+
'fakeroot dpkg-deb -b code-' + debArch + ' deb/' + product.applicationName + '-' + debArch + '.deb',
324324
'dpkg-scanpackages deb /dev/null > Packages'
325325
], { cwd: '.build/linux/deb/' + debArch});
326326
}
@@ -378,7 +378,7 @@ function buildRpmPackage(arch) {
378378
return shell.task([
379379
'mkdir -p ' + destination,
380380
'HOME="$(pwd)/' + destination + '" fakeroot rpmbuild -bb ' + rpmBuildPath + '/SPECS/' + product.applicationName + '.spec --target=' + rpmArch,
381-
'cp "' + rpmOut + '/$(ls ' + rpmOut + ')" ' + destination + '/code-' + rpmArch + '.rpm',
381+
'cp "' + rpmOut + '/$(ls ' + rpmOut + ')" ' + destination + '/' + product.applicationName+ '-' + rpmArch + '.rpm',
382382
'createrepo ' + destination
383383
]);
384384
}

0 commit comments

Comments
 (0)