mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
31 lines
745 B
JavaScript
31 lines
745 B
JavaScript
module.exports = function(config) {
|
|
'use strict';
|
|
|
|
var task = {
|
|
release: {
|
|
options: {
|
|
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.<%= platform %>-<%= arch %>.tar.gz'
|
|
},
|
|
files : [
|
|
{
|
|
expand: true,
|
|
cwd: '<%= tempDir %>',
|
|
src: ['**/*'],
|
|
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
|
},
|
|
{
|
|
expand: true,
|
|
src: ['LICENSE.md', 'README.md', 'NOTICE.md'],
|
|
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
if (config.platform === 'windows') {
|
|
task.release.options.archive = '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.<%= platform %>-<%= arch %>.zip';
|
|
}
|
|
|
|
return task;
|
|
};
|