mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Windows build: updates to build stuff to create better windows packages
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = function(grunt) {
|
||||
grunt.config('copy.backend_bin', {
|
||||
cwd: 'bin',
|
||||
expand: true,
|
||||
src: ['grafana-server'],
|
||||
src: ['*'],
|
||||
options: { mode: true},
|
||||
dest: '<%= tempDir %>/bin/'
|
||||
});
|
||||
|
||||
@@ -2,10 +2,6 @@ module.exports = function(grunt) {
|
||||
"use strict";
|
||||
|
||||
// build, then zip and upload to s3
|
||||
grunt.registerTask('release', [
|
||||
'build',
|
||||
'build-post-process',
|
||||
'compress:tgz_release',
|
||||
]);
|
||||
grunt.registerTask('release', ['build', 'build-post-process','compress:release']);
|
||||
|
||||
};
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
module.exports = function(config) {
|
||||
return {
|
||||
tgz: {
|
||||
|
||||
var task = {
|
||||
release: {
|
||||
options: {
|
||||
archive: '<%= destDir %>/<%= pkg.name %>-latest.tar.gz'
|
||||
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.<%= platform %>-<%= arch %>.tar.gz'
|
||||
},
|
||||
files : [
|
||||
{
|
||||
@@ -17,24 +18,12 @@ module.exports = function(config) {
|
||||
dest: '<%= pkg.name %>/',
|
||||
}
|
||||
]
|
||||
},
|
||||
tgz_release: {
|
||||
options: {
|
||||
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.<%= 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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user