mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 11:17:19 +03:00
Revert "Better way to invoke make single
"
This reverts commit 73efbd90
This commit is contained in:
parent
73efbd90ab
commit
a5fc5f0ff6
8
Makefile
8
Makefile
@ -78,14 +78,14 @@ all: ##@Cross_Compilation Build binaries for all supported platforms. It does no
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
single: ##@Cross_Compilation Build binaries for a single supported platforms. It does not build the frontend
|
single: ##@Cross_Compilation Build binaries for a single supported platforms. It does not build the frontend
|
||||||
@if [ -z "${os}" -o -z "${arch}" ]; then \
|
@if [ -z "${GOOS}" -o -z "${GOARCH}" ]; then \
|
||||||
echo "Usage: make single os=<os> arch=<arch> "; \
|
echo "Usage: GOOS=<os> GOARCH=<arch> make single"; \
|
||||||
echo "Options:"; \
|
echo "Options:"; \
|
||||||
grep -- "- id: navidrome_" .goreleaser.yml | sed 's/- id: navidrome_//g'; \
|
grep -- "- id: navidrome_" .goreleaser.yml | sed 's/- id: navidrome_//g'; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
@echo "Building binaries for ${os}/${arch}"
|
@echo "Building binaries for ${GOOS}/${GOARCH}"
|
||||||
docker run -t -v $(PWD):/workspace -e GOOS=${os} -e GOARCH=${arch} -w /workspace deluan/ci-goreleaser:$(CI_RELEASER_VERSION) \
|
docker run -t -v $(PWD):/workspace -e GOOS -e GOARCH -w /workspace deluan/ci-goreleaser:$(CI_RELEASER_VERSION) \
|
||||||
goreleaser build --rm-dist --snapshot --single-target --id navidrome_${GOOS}_${GOARCH}
|
goreleaser build --rm-dist --snapshot --single-target --id navidrome_${GOOS}_${GOARCH}
|
||||||
.PHONY: single
|
.PHONY: single
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user