From 0c7acdfa264fd195e7dfb2d8c1e44dc696ac4e12 Mon Sep 17 00:00:00 2001 From: Shane Clark Date: Thu, 23 Jan 2025 22:03:57 -0700 Subject: [PATCH] Create Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a38a965 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +build: + go build -ldflags="-s -w" -o="dist/" + +all: linux windows darwin zip + +linux: + GOARCH="amd64" GOOS="linux" go build -ldflags="-s -w" -o="dist/linux/edas" + +windows: + GOARCH="amd64" GOOS="windows" go build -ldflags="-s -w" -o="dist/windows/edas.exe" + +darwin: + GOARCH="amd64" GOOS="darwin" go build -ldflags="-s -w" -o="dist/darwin/edas" + +zip: + rm -f dist/edas.zip + zip dist/edas.zip README.md LICENSE + cd dist && zip -r edas.zip darwin linux windows \ No newline at end of file