2013-11-14 17:07:14 -06:00
|
|
|
module.exports = function(config) {
|
2015-04-20 05:33:32 -05:00
|
|
|
'use strict';
|
2015-04-20 01:10:23 -05:00
|
|
|
|
|
|
|
var task = {
|
|
|
|
release: {
|
2013-11-14 17:07:14 -06:00
|
|
|
options: {
|
2015-04-20 01:10:23 -05:00
|
|
|
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.<%= platform %>-<%= arch %>.tar.gz'
|
2013-11-14 17:07:14 -06:00
|
|
|
},
|
|
|
|
files : [
|
|
|
|
{
|
|
|
|
expand: true,
|
2015-01-01 15:26:57 -06:00
|
|
|
cwd: '<%= tempDir %>',
|
2013-11-14 17:07:14 -06:00
|
|
|
src: ['**/*'],
|
2015-04-20 05:33:32 -05:00
|
|
|
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
2013-11-14 17:07:14 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
2014-01-19 09:24:47 -06:00
|
|
|
src: ['LICENSE.md', 'README.md', 'NOTICE.md'],
|
2015-04-21 01:20:34 -05:00
|
|
|
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
2013-11-14 17:07:14 -06:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|
2015-04-20 01:10:23 -05:00
|
|
|
|
|
|
|
if (config.platform === 'windows') {
|
|
|
|
task.release.options.archive = '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.<%= platform %>-<%= arch %>.zip';
|
|
|
|
}
|
|
|
|
|
|
|
|
return task;
|
2015-01-01 15:26:57 -06:00
|
|
|
};
|