Skip to content

Commit

Permalink
Fix run:local and build:local Mage targets on Linux and Windows (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
xnyo authored Jan 23, 2025
1 parent 19dc76d commit 4570c71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin/
coverage/
.idea
6 changes: 3 additions & 3 deletions Magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ func buildCommand(command string, arch string) error {
return err
}

// intentionally igores errors
// intentionally ignores errors
sh.RunV("chmod", "+x", outDir)
return nil
}

func kioskCmd() error {
return buildCommand("grafana-kiosk", "darwin_amd64")
return buildCommand("grafana-kiosk", runtime.GOOS+"_"+runtime.GOARCH)
}

func buildCmdAll() error {
Expand Down Expand Up @@ -236,7 +236,7 @@ func (Run) Local() error {
mg.Deps(Build.Local)
return sh.RunV(
"./bin/"+runtime.GOOS+"_"+runtime.GOARCH+"/grafana-kiosk",
"-config",
"-c",
"config-example.yaml",
)
}

0 comments on commit 4570c71

Please sign in to comment.