Skip to content

Commit c8b0d49

Browse files
appleapple
authored andcommitted
修改makefile,可以生成常见版本的二进制
1 parent 2a581b8 commit c8b0d49

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ else
99
endif
1010
endif
1111

12-
TAG := "v1.1.0"
12+
TAG := "v1.0.1"
1313
OS_LIST := windows darwin linux
1414
ARCH_LIST := 386 amd64 arm64
1515

@@ -44,12 +44,14 @@ install:
4444
gen_releases:
4545
@for os in $(OS_LIST); do \
4646
for arch in $(ARCH_LIST); do \
47-
echo "Build for $$os $$arch"; \
47+
exe=bbx-$$os-$$arch-$(TAG); \
4848
export GOOS=$$os GOARCH=$$arch; \
4949
if [ "$$os" = "windows" ]; then \
50-
go build -o releases/bbx-$$os-$$arch.exe; \
50+
echo "$$exe".exe; \
51+
go build -o releases/$$exe.exe; \
5152
else \
52-
go build -o releases/bbx-$$os-$$arch; \
53+
echo "$$exe"; \
54+
go build -o releases/$$exe; \
5355
fi; \
5456
done ; \
5557
done

0 commit comments

Comments
 (0)