打通网络
parent
67d44ea967
commit
afde513ad9
@ -0,0 +1,25 @@
|
||||
plat ?= darwin
|
||||
plats = linux darwin windows
|
||||
|
||||
arch ?= amd64
|
||||
archs = amd64 arm arm64
|
||||
|
||||
all: server wechat
|
||||
|
||||
define build_app
|
||||
@echo 'building $(1) ...'
|
||||
@GOOS=$(2) GOARCH=$(3) go build -o builder/$(1) ./cmd/$(1)
|
||||
@echo 'build $(1) done'
|
||||
endef
|
||||
|
||||
|
||||
server:
|
||||
$(call build_app,server,$(plat),$(arch))
|
||||
.PHONY: server
|
||||
|
||||
wechat:
|
||||
$(call build_app,wechat,$(plat),$(arch))
|
||||
.PHONY: wechat
|
||||
|
||||
clean:
|
||||
@rm -f builder/*
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @Author: jager
|
||||
* @Email: lhj168os@gmail.com
|
||||
* @File: wsc
|
||||
* @Date: 2021/10/21 2:47 下午
|
||||
* @package: wsc
|
||||
* @Version: v1.0.0
|
||||
*
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
|
||||
package wsc
|
||||
|
Loading…
Reference in New Issue