diff options
author | Carlos Fernández <sirikon2@gmail.com> | 2017-02-21 20:48:38 +0100 |
---|---|---|
committer | Carlos Fernández <sirikon2@gmail.com> | 2017-02-21 20:48:38 +0100 |
commit | 2051441d32611372bf8e164f930e9c664fcd5f2d (patch) | |
tree | cfd28f987ae981f797578912145108a3ed768901 /cmd/ponzu/paths.go | |
parent | 39e0708be1b57b5527f4c79708b25067ba50f86e (diff) |
Fix Windows build & run
Diffstat (limited to 'cmd/ponzu/paths.go')
-rw-r--r-- | cmd/ponzu/paths.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/ponzu/paths.go b/cmd/ponzu/paths.go new file mode 100644 index 0000000..4bd4d41 --- /dev/null +++ b/cmd/ponzu/paths.go @@ -0,0 +1,12 @@ +package main + +import "runtime" + +// GetPonzuServerBuildOutputFileName returns de correct +// ponzu-server file name based on the host Operating System +func GetPonzuServerBuildOutputFileName() string { + if runtime.GOOS == "windows" { + return "ponzu-server.exe" + } + return "ponzu-server" +} |