mirror of https://github.com/coder/coder.git
build: Fix site/bin tar/zstd build step in rare error cases (#5495)
This commit is contained in:
parent
ac27cf8c07
commit
bae69df8f9
6
Makefile
6
Makefile
|
@ -121,6 +121,9 @@ build/coder-slim_$(VERSION).tar: build/coder-slim_$(VERSION)_checksums.sha1 $(CO
|
||||||
tar cf "../../../build/$(@F)" coder-*
|
tar cf "../../../build/$(@F)" coder-*
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# delete the uncompressed binaries from the embedded dir
|
||||||
|
rm -f site/out/bin/coder-*
|
||||||
|
|
||||||
site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar.zst
|
site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar.zst
|
||||||
cp "$<" "$@"
|
cp "$<" "$@"
|
||||||
|
|
||||||
|
@ -132,9 +135,6 @@ build/coder-slim_$(VERSION).tar.zst: build/coder-slim_$(VERSION).tar
|
||||||
-o "build/coder-slim_$(VERSION).tar.zst" \
|
-o "build/coder-slim_$(VERSION).tar.zst" \
|
||||||
"build/coder-slim_$(VERSION).tar"
|
"build/coder-slim_$(VERSION).tar"
|
||||||
|
|
||||||
# delete the uncompressed binaries from the embedded dir
|
|
||||||
rm site/out/bin/coder-*
|
|
||||||
|
|
||||||
# Redirect from version-less targets to the versioned ones. There is a similar
|
# Redirect from version-less targets to the versioned ones. There is a similar
|
||||||
# target for slim binaries below.
|
# target for slim binaries below.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue