1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

fix version settings in build

This commit is contained in:
Darien Raymond 2017-02-12 21:54:35 +01:00
parent ec95caa946
commit 5c824dbe82
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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)