mirror of https://github.com/v2ray/v2ray-core
fix version settings in build
parent
ec95caa946
commit
5c824dbe82
|
@ -6,8 +6,6 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"v2ray.com/core"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -63,8 +61,9 @@ func build(targetOS, targetArch string, archive bool, version string, metadataFi
|
||||||
if len(version) == 0 {
|
if len(version) == 0 {
|
||||||
version = os.Getenv("TRAVIS_TAG")
|
version = os.Getenv("TRAVIS_TAG")
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(version) == 0 {
|
if len(version) == 0 {
|
||||||
version = core.Version()
|
version = "custom"
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Building V2Ray (%s) for %s %s\n", version, v2rayOS, v2rayArch)
|
fmt.Printf("Building V2Ray (%s) for %s %s\n", version, v2rayOS, v2rayArch)
|
||||||
|
|
Loading…
Reference in New Issue