mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 01:05:35 -05:00
Remove .dev/protoc & Detect and show download link
This commit is contained in:
@@ -20,12 +20,16 @@ func main() {
|
||||
}
|
||||
|
||||
GOBIN := common.GetGOBIN()
|
||||
protoc := core.ProtocMap[runtime.GOOS]
|
||||
|
||||
EXE := ""
|
||||
if runtime.GOOS == "windows" {
|
||||
EXE = ".exe"
|
||||
}
|
||||
protoc := "protoc" + EXE
|
||||
|
||||
if err := exec.Command(protoc).Run(); err != nil {
|
||||
fmt.Println("Make sure that you have `" + protoc + "` in your system or current path, please visit https://github.com/protocolbuffers/protobuf/releases")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
protoFilesMap := make(map[string][]string)
|
||||
walkErr := filepath.Walk("./", func(path string, info os.FileInfo, err error) error {
|
||||
|
||||
Reference in New Issue
Block a user