summaryrefslogtreecommitdiff
path: root/cmd/ponzu/paths.go
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2017-02-21 18:02:24 -0800
committerGitHub <noreply@github.com>2017-02-21 18:02:24 -0800
commit3c7327058bd2ee890d36809fd171f1477e0ebfe5 (patch)
tree9ed6e440588d9c82a110d0b7ca8237539f3d0741 /cmd/ponzu/paths.go
parent39e0708be1b57b5527f4c79708b25067ba50f86e (diff)
parentfbce00a0b19628abd2d0c8b50c1cfa6b87cee3ce (diff)
Merge pull request #78 from Sirikon/ponzu-dev
Fix Windows build & run
Diffstat (limited to 'cmd/ponzu/paths.go')
-rw-r--r--cmd/ponzu/paths.go12
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..0ab2b06
--- /dev/null
+++ b/cmd/ponzu/paths.go
@@ -0,0 +1,12 @@
+package main
+
+import "runtime"
+
+// buildOutputName returns the correct ponzu-server file name
+// based on the host Operating System
+func buildOutputName() string {
+ if runtime.GOOS == "windows" {
+ return "ponzu-server.exe"
+ }
+ return "ponzu-server"
+}