From 4e91118a0512a352a93b99b5bfd5b37668001dc6 Mon Sep 17 00:00:00 2001 From: Noah Shang Date: Mon, 31 Dec 2018 20:57:21 +0800 Subject: [PATCH] Feature: add freebsd release (#80) add freebsd support --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 622afd32..30224a11 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ NAME=clash BINDIR=bin GOBUILD=CGO_ENABLED=0 go build -ldflags '-w -s' -all: linux macos win64 +all: linux macos freebsd win64 linux: GOARCH=amd64 GOOS=linux $(GOBUILD) -o $(BINDIR)/$(NAME)-$@ @@ -10,13 +10,17 @@ linux: macos: GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@ +freebsd: + GOARCH=amd64 GOOS=freebsd $(GOBUILD) -o $(BINDIR)/$(NAME)-$@ + win64: GOARCH=amd64 GOOS=windows $(GOBUILD) -o $(BINDIR)/$(NAME)-$@.exe -releases: linux macos win64 +releases: linux macos freebsd win64 chmod +x $(BINDIR)/$(NAME)-* gzip $(BINDIR)/$(NAME)-linux gzip $(BINDIR)/$(NAME)-macos + gzip $(BINDIR)/$(NAME)-freebsd zip -m -j $(BINDIR)/$(NAME)-win64.zip $(BINDIR)/$(NAME)-win64.exe clean: