Skip to content

Commit

Permalink
Remove debug info in build.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Oct 18, 2015
1 parent d221147 commit 58b88a7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tools/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ var (
)

func createTargetDirectory(version string, goOS GoOS, goArch GoArch) (string, error) {
suffix := "-custom"
if version != "custom" {
suffix = getSuffix(goOS, goArch)
}
suffix := getSuffix(goOS, goArch)
GOPATH := os.Getenv("GOPATH")

targetDir := filepath.Join(GOPATH, "bin", "v2ray-"+version+suffix)
Expand All @@ -33,15 +30,14 @@ func createTargetDirectory(version string, goOS GoOS, goArch GoArch) (string, er

func getTargetFile(goOS GoOS) string {
suffix := ""
if goOS == "Windows" {
if goOS == Windows {
suffix += ".exe"
}
return "v2ray" + suffix
}

func main() {
flag.Parse()
fmt.Println(os.Args)

v2rayOS := parseOS(*targetOS)
v2rayArch := parseArch(*targetArch)
Expand All @@ -55,7 +51,6 @@ func main() {
return
}
fmt.Printf("Building V2Ray (%s) for %s %s\n", version, v2rayOS, v2rayArch)
version = "v1.0"

targetDir, err := createTargetDirectory(version, v2rayOS, v2rayArch)
if err != nil {
Expand Down

0 comments on commit 58b88a7

Please sign in to comment.