parent
3b2b78b2c6
commit
ec32eeb1c2
|
@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue