Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c9a28ddd
Commit
c9a28ddd
authored
Apr 20, 2015
by
Torkel Odegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows build: updates to build stuff to create better windows packages
parent
bb7ee1c5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
28 deletions
+21
-28
Gruntfile.js
+3
-1
appveyor.yml
+6
-0
tasks/build_task.js
+1
-1
tasks/distribute_task.js
+1
-5
tasks/options/compress.js
+10
-21
No files found.
Gruntfile.js
View file @
c9a28ddd
...
...
@@ -2,13 +2,15 @@
'use strict'
;
module
.
exports
=
function
(
grunt
)
{
var
os
=
require
(
'os'
);
var
config
=
{
pkg
:
grunt
.
file
.
readJSON
(
'package.json'
),
baseDir
:
'.'
,
srcDir
:
'public'
,
destDir
:
'dist'
,
tempDir
:
'tmp'
,
arch
:
grunt
.
option
(
'arch'
)
||
'x86_64'
,
arch
:
os
.
arch
(),
platform
:
process
.
platform
.
replace
(
'win32'
,
'windows'
),
};
config
.
pkg
.
version
=
grunt
.
option
(
'pkgVer'
)
||
config
.
pkg
.
version
;
...
...
appveyor.yml
View file @
c9a28ddd
...
...
@@ -5,9 +5,14 @@ os: Windows Server 2012 R2
clone_folder
:
c:\gopath\src\github.com\grafana\grafana
environment
:
nodejs_version
:
"
0.10"
GOPATH
:
c:\gopath
install
:
# install nodejs and npm
-
ps
:
Install-Product node $env:nodejs_version
-
npm install
# install gcc (needed for sqlite3)
-
choco install -y mingw
-
set PATH=C:\tools\mingw64\bin;%PATH%
-
echo %PATH%
...
...
@@ -18,3 +23,4 @@ install:
build_script
:
-
go run build.go build
-
grunt release
tasks/build_task.js
View file @
c9a28ddd
...
...
@@ -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/'
});
...
...
tasks/distribute_task.js
View file @
c9a28ddd
...
...
@@ -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'
]);
};
tasks/options/compress.js
View file @
c9a28ddd
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
;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment