代码拉取完成,页面将自动刷新
同步操作将从 科大讯飞/aiges 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
.PHONY: build-linux
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) unpack
BINARY_NAME=main
BINARY_LINUX=$(BINARY_NAME)-linux
GORELEASER_BIN = $(shell pwd)/bin/goreleaser
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec
# go-get-tool will 'go get' any package $2 and install it to $1.
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
@[ -f $(1) ] || { \
set -e ;\
TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
rm -rf $$TMP_DIR ;\
}
endef
install-goreleaser: ## check license if not exist install go-lint tools
#goimports -l -w cmd
#goimports -l -w pkg
build:
mkdir bin
$(GOBUILD) -v -o ./bin/AIservice -gcflags "-N -l -c 10" ./main/main.go
cp -r ./cgo/library/* ./bin/
mkdir -p bin/include
cp -ra ./cgo/header/widget/* ./bin/include
clean:
rm -rf bin dist
pack:
tar -acvf aiservice.tar.gz ./bin
mkdir -p dist
mv aiservice.tar.gz dist
dist: build pack
build-pack: SHELL:=/bin/bash
build-pack: install-goreleaser ## build binaries by default
@echo "build aiges bin"
$(GORELEASER_BIN) build --snapshot --rm-dist --timeout=1h
build-release: SHELL:=/bin/bash
build-release: install-goreleaser ## build binaries by default
@echo "build sealos bin"
$(GORELEASER_BIN) release --timeout=1h --release-notes=hack/release/Note.md --debug --rm-dist
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。