kill binary before build

pull/2279/head
skiffer-git 1 year ago
parent c3c472aee0
commit 873fff3c5c

@ -6,22 +6,12 @@ package main
import ( import (
"github.com/openimsdk/gomake/mageutil" "github.com/openimsdk/gomake/mageutil"
"os" "os"
"strings"
) )
var Default = Build var Default = Build
func Build() { func Build() {
platforms := os.Getenv("PLATFORMS")
if platforms == "" {
platforms = mageutil.DetectPlatform()
}
for _, platform := range strings.Split(platforms, " ") {
mageutil.CompileForPlatform(platform)
}
mageutil.PrintGreen("All binaries under cmd and tools were successfully compiled.")
} }
func Start() { func Start() {

Loading…
Cancel
Save