From 7187cfe52e00dfb12fe28016c44a7971cc79d595 Mon Sep 17 00:00:00 2001 From: daschiller Date: Wed, 19 Feb 2025 02:24:31 +0100 Subject: [PATCH] add Windows build support to Makefile (#54) --- Makefile | 7 ++++++- README.md | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ce16e27..431d48c 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,11 @@ linux: @echo "Building Linux binary..." GOOS=linux GOARCH=amd64 go build -ldflags="-X main.commit=${GIT_HASH} -X main.version=local_${GIT_HASH} -X main.date=${BUILD_DATE}" -o $(BUILD_DIR)/$(APP_NAME)-linux-amd64 +# Build Windows binary +windows: + @echo "Building Windows binary..." + GOOS=windows GOARCH=amd64 go build -ldflags="-X main.commit=${GIT_HASH} -X main.version=local_${GIT_HASH} -X main.date=${BUILD_DATE}" -o $(BUILD_DIR)/$(APP_NAME)-windows-amd64.exe + # for testing proxy.Process simple-responder: @echo "Building simple responder" @@ -60,4 +65,4 @@ release: git tag "$$new_tag"; # Phony targets -.PHONY: all clean mac linux +.PHONY: all clean mac linux windows diff --git a/README.md b/README.md index c5dc5c9..570b2f6 100644 --- a/README.md +++ b/README.md @@ -189,7 +189,6 @@ Pre-built binaries are available for Linux, FreeBSD and Darwin (OSX). These are 1. Create a configuration file, see [config.example.yaml](config.example.yaml) 1. Download a [release](https://github.com/mostlygeek/llama-swap/releases) appropriate for your OS and architecture. - - _Note: Windows currently untested._ 1. Run the binary with `llama-swap --config path/to/config.yaml` ### Building from source