mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
build: Fix site/bin tar/zstd build step in rare error cases (#5495)
This commit is contained in:
@@ -121,6 +121,9 @@ build/coder-slim_$(VERSION).tar: build/coder-slim_$(VERSION)_checksums.sha1 $(CO
|
||||
tar cf "../../../build/$(@F)" coder-*
|
||||
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
|
||||
cp "$<" "$@"
|
||||
|
||||
@@ -132,9 +135,6 @@ build/coder-slim_$(VERSION).tar.zst: build/coder-slim_$(VERSION).tar
|
||||
-o "build/coder-slim_$(VERSION).tar.zst" \
|
||||
"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
|
||||
# target for slim binaries below.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user