mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
Add: add windows release
This commit is contained in:
parent
b6495c8dd2
commit
b6e4086556
6
Makefile
6
Makefile
|
@ -10,10 +10,14 @@ linux:
|
||||||
macos:
|
macos:
|
||||||
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
||||||
|
|
||||||
releases: linux macos
|
win64:
|
||||||
|
GOARCH=amd64 GOOS=windows $(GOBUILD) -o $(BINDIR)/$(NAME)-$@.exe
|
||||||
|
|
||||||
|
releases: linux macos win64
|
||||||
chmod +x $(BINDIR)/$(NAME)-*
|
chmod +x $(BINDIR)/$(NAME)-*
|
||||||
gzip $(BINDIR)/$(NAME)-linux
|
gzip $(BINDIR)/$(NAME)-linux
|
||||||
gzip $(BINDIR)/$(NAME)-macos
|
gzip $(BINDIR)/$(NAME)-macos
|
||||||
|
zip -m -j $(BINDIR)/$(NAME)-win64.zip $(BINDIR)/$(NAME)-win64.exe
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(BINDIR)/*
|
rm $(BINDIR)/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user