From 873fff3c5c16086026f8e65211aae3437fd7cfed Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Tue, 7 May 2024 20:41:02 +0800 Subject: [PATCH] kill binary before build --- magefile.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/magefile.go b/magefile.go index 98ffa48f3..44186ab9c 100644 --- a/magefile.go +++ b/magefile.go @@ -6,22 +6,12 @@ package main import ( "github.com/openimsdk/gomake/mageutil" "os" - "strings" ) var Default = 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() {