1 Star 0 Fork 0

574893508/aidea-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
Version := $(shell date "+%Y%m%d%H%M")
GitCommit := $(shell git rev-parse HEAD)
DIR := $(shell pwd)
LDFLAGS := -s -w -X main.Version=$(Version) -X main.GitCommit=$(GitCommit) -X main.DEBUG=true
build: doc
go build -race -ldflags "$(LDFLAGS)" -o build/debug/aidea-server main.go
build-release: doc
GOOS=linux GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o build/release/aidea-server-linux main.go
GOOS=linux GOARCH=arm go build -ldflags "$(LDFLAGS)" -o build/release/aidea-server-linux-arm main.go
GOOS=darwin GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o build/release/aidea-server-darwin main.go
GOOS=windows GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o build/release/aidea-server.exe main.go
build-linux: doc
GOOS=linux GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o build/release/aidea-server-linux main.go
# Update swagger documentation
# Please install swag before execution, installation method: `go install github.com/swaggo/swag/cmd/swag@latest`
# Reference: https://github.com/swaggo/gin-swagger
doc:
swag init
orm:
# https://github.com/mylxsw/eloquent
eloquent gen --source 'pkg/repo/model/*.yaml'
gofmt -s -w pkg/repo/model/*.go
.PHONY: build build-release orm build-linux doc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zyl1221/aidea-server.git
[email protected]:zyl1221/aidea-server.git
zyl1221
aidea-server
aidea-server
main

搜索帮助