From 3deb9164ef3304c45168d45c78f0d1ba181585d0 Mon Sep 17 00:00:00 2001 From: Daniel Hall Date: Tue, 25 Jun 2024 15:44:00 -0700 Subject: [PATCH] build: Added release building --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 4dce13e..afcfb4e 100644 --- a/Makefile +++ b/Makefile @@ -8,5 +8,14 @@ usrinstall: build install: build install -Dt /usr/local/bin -m 755 ./build/grave +release: + GOOS=windows GOARCH=amd64 go build -o ./build/grave.exe ./cmd/main.go + GOOS=windows GOARCH=386 go build -o ./build/grave-x86.exe ./cmd/main.go + GOOS=darwin GOARCH=amd64 go build -o ./build/grave.darwin ./cmd/main.go + GOOS=darwin GOARCH=arm64 go build -o ./build/grave-arm64.darwin ./cmd/main.go + GOOS=linux GOARCH=amd64 go build -o ./build/grave ./cmd/main.go + GOOS=linux GOARCH=arm64 go build -o ./build/grave-arm64 ./cmd/main.go + GOOS=linux GOARCH=386 go build -o ./build/grave-x86 ./cmd/main.go + clean: rm -rf ./build/