blob: 73d8d73da9faa0b9a178aa5655419faa9884a046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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"
}
// buildOutputPath returns the correct path to the ponzu-server binary
// built, based on the host Operating System. This is necessary so that
// the UNIX-y systems know to look in the current directory, and not the $PATH
func buildOutputPath() string {
if runtime.GOOS == "windows" {
return ""
}
return "."
}
|