From c9c8ee44bd0beed532fae2cdc1eb76b3ece2e531 Mon Sep 17 00:00:00 2001 From: Walt Chen Date: Sun, 5 Jan 2025 17:07:54 -0500 Subject: [PATCH] Fix windows build --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 71f1c8a..e7ebe88 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,11 @@ GO ?= go ifndef GOOS - GOOS := $(shell uname -s| tr '[:upper:]' '[:lower:]') + ifeq ($(OS), Windows_NT) + GOOS := windows + else + GOOS := $(shell uname -s| tr '[:upper:]' '[:lower:]') + endif endif ifndef GOARCH