use internal/core/VERSION as single source of truth to get version (#6119)

This commit is contained in:
Alessandro Ros
2026-08-19 20:40:50 +02:00
committed by GitHub
parent 883194a19b
commit 9934156a0f
+1 -1
View File
@@ -16,7 +16,7 @@ RUN go generate ./...
FROM build-base AS build-windows-amd64
RUN GOOS=windows GOARCH=amd64 go build -o "tmp/$(BINARY_NAME).exe"
RUN go install github.com/tc-hib/go-winres@v0.3.3
RUN go-winres patch --in scripts/winres.json --product-version "$$(git describe --tags --abbrev=0 | sed 's/^v//')" --file-version "$$(git describe --tags --abbrev=0 | sed 's/^v//')" tmp/mediamtx.exe
RUN go-winres patch --in scripts/winres.json --product-version "$$(cat internal/core/VERSION | sed 's/^v\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$$/\\1/')" --file-version "$$(cat internal/core/VERSION | sed 's/^v\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$$/\\1/')" tmp/mediamtx.exe
RUN cd tmp && zip -q "../binaries/$(BINARY_NAME)_$$(cat ../internal/core/VERSION)_windows_amd64.zip" "$(BINARY_NAME).exe" mediamtx.yml LICENSE
FROM build-base AS build-linux-amd64