mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 20:34:18 +08:00
kill binary before build
This commit is contained in:
parent
dd10f832ec
commit
f292fc4c0a
10
magefile.go
10
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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user