1 Star 0 Fork 1

Free/tencentKeTang

forked from 吴昊/tencentKeTang 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
人渣29 提交于 2021-07-23 11:30 . feat:更新版本
NAME=tencentKeTang
BINDIR=bin
VERSION=v0.2.4
BUILDTIME=$(shell date -u)
GOBUILD=CGO_ENABLED=0 go build -ldflags '-w -s -X main.Version=${VERSION}'
PLATFORM_LIST = \
darwin-amd64 \
linux-amd64
WINDOWS_ARCH_LIST = \
windows-386 \
windows-amd64
all: linux-amd64 darwin-amd64 windows-amd64 windows-386 # Most used
darwin-amd64:
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
linux-amd64:
GOARCH=amd64 GOOS=linux $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
windows-386:
GOARCH=386 GOOS=windows $(GOBUILD) -o $(BINDIR)/$(NAME)-$@.exe
windows-amd64:
GOARCH=amd64 GOOS=windows $(GOBUILD) -o $(BINDIR)/$(NAME)-$@.exe
gz_releases=$(addsuffix .zip, $(PLATFORM_LIST))
zip_releases=$(addsuffix .zip, $(WINDOWS_ARCH_LIST))
$(gz_releases): %.zip : %
chmod +x $(BINDIR)/$(NAME)-$(basename $@)
cp config.yaml $(BINDIR)/
cp libs/ffmpeg $(BINDIR)/
cp libs/ffprobe $(BINDIR)/
zip -m -j $(BINDIR)/$(NAME)-$(basename $@).zip $(BINDIR)/$(NAME)-$(basename $@) $(BINDIR)/config.yaml $(BINDIR)/ffmpeg $(BINDIR)/ffprobe
$(zip_releases): %.zip : %
cp config.yaml $(BINDIR)/
cp libs/ffmpeg.exe $(BINDIR)/
cp libs/ffprobe.exe $(BINDIR)/
zip -m -j $(BINDIR)/$(NAME)-$(basename $@).zip $(BINDIR)/$(NAME)-$(basename $@).exe $(BINDIR)/config.yaml $(BINDIR)/ffmpeg.exe $(BINDIR)/ffprobe.exe
all-arch: $(PLATFORM_LIST) $(WINDOWS_ARCH_LIST)
releases: $(gz_releases) $(zip_releases)
clean:
rm $(BINDIR)/*
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lxbase/tencentKeTang.git
git@gitee.com:lxbase/tencentKeTang.git
lxbase
tencentKeTang
tencentKeTang
main

搜索帮助