mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +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 (
|
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…
x
Reference in New Issue
Block a user