Skip to content

Commit 4853b9d

Browse files
committed
fix: add conditional for building Windows plugin executables.
1 parent bfd30bc commit 4853b9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ build-plugins:
1414
mkdir -p bin
1515
for p in $$( cd ./external/plugins && ls ); do \
1616
echo "Building plugin $$p"; \
17-
go build -tags lambda.norpc -ldflags "-X main.Version=$(VERSION)" -o ./bin/plugin-$$p ./external/plugins/$$p; \
17+
if [ "$(shell go env GOOS)" = "windows" ]; then \
18+
go build -tags lambda.norpc -ldflags "-X main.Version=$(VERSION)" -o ./bin/plugin-$$p.exe ./external/plugins/$$p; \
19+
else \
20+
go build -tags lambda.norpc -ldflags "-X main.Version=$(VERSION)" -o ./bin/plugin-$$p ./external/plugins/$$p; \
21+
fi; \
1822
done
1923

2024
.PHONY: fmt

0 commit comments

Comments
 (0)