Skip to content

Commit ec1c10a

Browse files
committed
fixup! chore: fix release makefile stuff
1 parent 317e80d commit ec1c10a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ build/coder-slim_$(VERSION).tar.zst site/out/coder.tar.zst: build/coder-slim_$(V
111111
"build/coder-slim_$(VERSION).tar"
112112

113113
cp "build/coder-slim_$(VERSION).tar.zst" "site/out/coder.tar.zst"
114+
# delete the uncompressed binaries from the embedded dir
115+
rm site/out/coder-*
114116

115117
# Redirect from version-less targets to the versioned ones. There is a similar
116118
# target for slim binaries below.
@@ -120,7 +122,7 @@ build/coder-slim_$(VERSION).tar.zst site/out/coder.tar.zst: build/coder-slim_$(V
120122
# make build/coder_windows_amd64.exe
121123
$(CODER_FAT_NOVERSION_BINARIES): build/coder_%: build/coder_$(VERSION)_%
122124
rm -f "$@"
123-
ln -s "$$(basename "$<")" "$@"
125+
ln "$<" "$@"
124126

125127
# Same as above, but for slim binaries.
126128
#
@@ -129,7 +131,7 @@ $(CODER_FAT_NOVERSION_BINARIES): build/coder_%: build/coder_$(VERSION)_%
129131
# make build/coder-slim_windows_amd64.exe
130132
$(CODER_SLIM_NOVERSION_BINARIES): build/coder-slim_%: build/coder-slim_$(VERSION)_%
131133
rm -f "$@"
132-
ln -s "$$(basename "$<")" "$@"
134+
ln "$<" "$@"
133135

134136
# "fat" binaries always depend on the site and the compressed slim binaries.
135137
$(CODER_FAT_BINARIES): site/out/index.html site/out/coder.tar.zst
@@ -215,6 +217,7 @@ $(CODER_ALL_ARCHIVES): $(CODER_FAT_BINARIES)
215217

216218
./scripts/archive.sh \
217219
--format "$$ext" \
220+
--os "$$os" \
218221
--output "$@" \
219222
"build/coder_$(VERSION)_$${os}_$${arch}$${bin_ext}"
220223

@@ -301,7 +304,7 @@ $(CODER_ALL_IMAGES_PUSHED): push/%: %
301304
# Shortcut for Helm chart package.
302305
build/coder_helm.tgz: build/coder_helm_$(VERSION).tgz
303306
rm -f "$@"
304-
ln -s "$$(basename "$<")" "$@"
307+
ln "$<" "$@"
305308

306309
# Helm chart package.
307310
build/coder_helm_$(VERSION).tgz:

0 commit comments

Comments
 (0)