Skip to content

Commit

Permalink
Fix GOEXT for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
godsarmy committed Jan 5, 2025
1 parent 161693e commit 5ceef0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ GO ?= go
ifndef GOOS
ifeq ($(OS), Windows_NT)
GOOS := windows
GOEXT := .exe
else
GOOS := $(shell uname -s| tr '[:upper:]' '[:lower:]')
GOEXT :=
endif
endif

Expand All @@ -20,6 +18,13 @@ ifndef GOARCH
GOARCH := arm64
endif
endif

ifeq ($(GOOS), windows)
GOEXT := .exe
else
GOEXT :=
endif

# Set build targets based on OS
VERSION ?= $(shell cat ./VERSION)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2

0 comments on commit 5ceef0d

Please sign in to comment.