Ver código fonte

fix version settings in build

Darien Raymond 8 anos atrás
pai
commit
5c824dbe82
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      tools/build/build.go

+ 2 - 3
tools/build/build.go

@@ -6,8 +6,6 @@ import (
 	"os"
 	"path/filepath"
 	"runtime"
-
-	"v2ray.com/core"
 )
 
 var (
@@ -63,8 +61,9 @@ func build(targetOS, targetArch string, archive bool, version string, metadataFi
 	if len(version) == 0 {
 		version = os.Getenv("TRAVIS_TAG")
 	}
+
 	if len(version) == 0 {
-		version = core.Version()
+		version = "custom"
 	}
 
 	fmt.Printf("Building V2Ray (%s) for %s %s\n", version, v2rayOS, v2rayArch)