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

Build yum repository

Related #229
上级 3b2b78b2
......@@ -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
]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册