Implement a Windows application manifest (#1445)

This commit is contained in:
Jan-Otto Kröpke
2024-05-03 07:30:31 +02:00
committed by GitHub
parent f6b91e5cb0
commit 8f6a1e3f07
4 changed files with 65 additions and 5 deletions

View File

@@ -12,10 +12,15 @@ ALL_OS:= 1809 ltsc2022
BASE_IMAGE=mcr.microsoft.com/windows/nanoserver
.PHONY: build
build: windows_exporter.exe
build: generate windows_exporter.exe
windows_exporter.exe: pkg/**/*.go
promu build -v
.PHONY: generate
generate:
go generate ./...
test:
go test -v ./...
@@ -36,7 +41,7 @@ promtool: windows_exporter.exe
fmt:
gofmt -l -w -s .
crossbuild:
crossbuild: generate
# The prometheus/golang-builder image for promu crossbuild doesn't exist
# on Windows, so for now, we'll just build twice
GOARCH=amd64 promu build --prefix=output/amd64