diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js index 49be869addbd23be80d43c133a6cd4fb7364fb96..828e652ed88da5ccecbd8b9a2229ac804f22f4e3 100644 --- a/build/gulpfile.vscode.js +++ b/build/gulpfile.vscode.js @@ -374,8 +374,13 @@ function prepareRpmPackage(arch) { function buildRpmPackage(arch) { var rpmArch = getRpmPackageArch(arch); + var rpmOut = rpmBuildPath + '/RPMS/' + rpmArch; + var destination = '.build/linux/rpm/' + rpmArch; return shell.task([ + 'mkdir -p ' + destination, 'fakeroot rpmbuild -bb ' + rpmBuildPath + '/SPECS/' + product.applicationName + '.spec --target=' + rpmArch, + 'cp ' + rpmOut + '/* ' + destination, + 'createrepo ' + destination ]); }