提交 1781c96e authored 作者: Jack Jie's avatar Jack Jie

chore:modify makefile, add arm system build command

上级 c1462b17
......@@ -12,6 +12,8 @@ all: build package
all_32: build_32 package
all_arm: build_arm package
# 构建目标:编译Go程序
build:
@echo "Building $(BINARY_NAME)..."
......@@ -23,6 +25,11 @@ build_32:
GOOS=linux GOARCH=386 go build -o $(BINARY_NAME)
@echo "Build completed."
build_arm:
@echo "Building $(BINARY_NAME)..."
GOOS=linux GOARCH=arm64 go build -o $(BINARY_NAME)
@echo "Build completed."
# 打包目标:将可执行文件和配置文件打包成tar.gz
package:
@echo "Packaging $(BINARY_NAME) and $(CONFIG_FILE)..."
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论