Build yum repository

Related #229
This commit is contained in:
Daniel Imms 2016-03-30 21:33:39 -07:00
parent 3b2b78b2c6
commit ec32eeb1c2

View file

@ -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
]);
}