use internal/core/VERSION as single source of truth to get version (#6119)
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ RUN go generate ./...
|
|||||||
FROM build-base AS build-windows-amd64
|
FROM build-base AS build-windows-amd64
|
||||||
RUN GOOS=windows GOARCH=amd64 go build -o "tmp/$(BINARY_NAME).exe"
|
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 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
|
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
|
FROM build-base AS build-linux-amd64
|
||||||
|
|||||||
Reference in New Issue
Block a user