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
5bb0d266
Commit
5bb0d266
authored
Aug 21, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: fixes rpm build when using defaults.
Closes #12980
parent
a9497f0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
18 deletions
+15
-18
build.go
+15
-18
No files found.
build.go
View file @
5bb0d266
...
...
@@ -64,6 +64,10 @@ func main() {
readVersionFromPackageJson
()
if
pkgArch
==
""
{
pkgArch
=
goarch
}
log
.
Printf
(
"Version: %s, Linux Version: %s, Package Iteration: %s
\n
"
,
version
,
linuxPackageVersion
,
linuxPackageIteration
)
if
flag
.
NArg
()
==
0
{
...
...
@@ -105,10 +109,17 @@ func main() {
case
"package"
:
grunt
(
gruntBuildArg
(
"build"
)
...
)
packageGrafana
()
grunt
(
gruntBuildArg
(
"package"
)
...
)
if
goos
==
"linux"
{
createLinuxPackages
()
}
case
"package-only"
:
packageGrafana
()
grunt
(
gruntBuildArg
(
"package"
)
...
)
if
goos
==
"linux"
{
createLinuxPackages
()
}
case
"pkg-rpm"
:
grunt
(
gruntBuildArg
(
"release"
)
...
)
...
...
@@ -133,22 +144,6 @@ func main() {
}
}
func
packageGrafana
()
{
platformArg
:=
fmt
.
Sprintf
(
"--platform=%v"
,
goos
)
previousPkgArch
:=
pkgArch
if
pkgArch
==
""
{
pkgArch
=
goarch
}
postProcessArgs
:=
gruntBuildArg
(
"package"
)
postProcessArgs
=
append
(
postProcessArgs
,
platformArg
)
grunt
(
postProcessArgs
...
)
pkgArch
=
previousPkgArch
if
goos
==
"linux"
{
createLinuxPackages
()
}
}
func
makeLatestDistCopies
()
{
files
,
err
:=
ioutil
.
ReadDir
(
"dist"
)
if
err
!=
nil
{
...
...
@@ -404,6 +399,8 @@ func gruntBuildArg(task string) []string {
if
phjsToRelease
!=
""
{
args
=
append
(
args
,
fmt
.
Sprintf
(
"--phjsToRelease=%v"
,
phjsToRelease
))
}
args
=
append
(
args
,
fmt
.
Sprintf
(
"--platform=%v"
,
goos
))
return
args
}
...
...
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