Skip to content

Commit

Permalink
Merge pull request #7491 from epixa/backport-7485
Browse files Browse the repository at this point in the history
[backport][4.x] Build task for os packages creates target
  • Loading branch information
epixa authored Jun 16, 2016
2 parents 6ccfc95 + a61e91f commit 5099549
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/build/archives.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function createPackages(grunt) {
let { execFile } = require('child_process');
let { all, fromNode } = require('bluebird');

const targetDir = config.get('target');
let buildPath = resolve(config.get('root'), 'build');
let exec = async (cmd, args) => {
grunt.log.writeln(` > ${cmd} ${args.join(' ')}`);
Expand All @@ -29,7 +30,7 @@ module.exports = function createPackages(grunt) {
grunt.config.get('platforms')
.map(async platform => {

grunt.file.mkdir('target');
grunt.file.mkdir(targetDir);
await archives(platform);
})
)
Expand Down
2 changes: 2 additions & 0 deletions tasks/build/osPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default (grunt) => {
const fpm = args => exec('fpm', args);

grunt.registerTask('_build:osPackages', function () {
grunt.file.mkdir(targetDir);

grunt.config.get('platforms')
.filter(({ name }) => /linux-x(86|64)$/.test(name))
.map(({ name, buildDir }) => {
Expand Down

0 comments on commit 5099549

Please sign in to comment.