mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 04:22:13 +08:00

* build: Install musl cross compilers as part of build Docker image * build: Build also musl packages in scripts/build/build.sh * scripts/build/build-all.sh: Build musl Linux targets * build: Upgrade build-container to 1.2.11 * build.go: De-duplicate code * build: Base Docker images on musl binaries
31 lines
849 B
JavaScript
31 lines
849 B
JavaScript
module.exports = function(config) {
|
|
'use strict';
|
|
|
|
var task = {
|
|
release: {
|
|
options: {
|
|
archive: '<%= destDir %>/<%= pkg.name %><%= enterprise ? "-enterprise" : "" %>-<%= pkg.version %>.<%= platform %>-<%= arch %><%= libc ? "-" + libc : "" %>.tar.gz'
|
|
},
|
|
files : [
|
|
{
|
|
expand: true,
|
|
cwd: '<%= tempDir %>',
|
|
src: ['**/*'],
|
|
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
|
},
|
|
{
|
|
expand: true,
|
|
src: ['LICENSE', 'README.md', 'NOTICE.md'],
|
|
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
if (config.platform === 'windows') {
|
|
task.release.options.archive = '<%= destDir %>/<%= pkg.name %><%= enterprise ? "-enterprise" : "" %>-<%= pkg.version %>.<%= platform %>-<%= arch %>.zip';
|
|
}
|
|
|
|
return task;
|
|
};
|