@@ -111,6 +111,8 @@ build/coder-slim_$(VERSION).tar.zst site/out/coder.tar.zst: build/coder-slim_$(V
111
111
" build/coder-slim_$( VERSION) .tar"
112
112
113
113
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-*
114
116
115
117
# Redirect from version-less targets to the versioned ones. There is a similar
116
118
# target for slim binaries below.
@@ -120,7 +122,7 @@ build/coder-slim_$(VERSION).tar.zst site/out/coder.tar.zst: build/coder-slim_$(V
120
122
# make build/coder_windows_amd64.exe
121
123
$(CODER_FAT_NOVERSION_BINARIES ) : build/coder_% : build/coder_$(VERSION ) _%
122
124
rm -f " $@ "
123
- ln -s " $$ (basename " $< " ) " " $@ "
125
+ ln " $< " " $@ "
124
126
125
127
# Same as above, but for slim binaries.
126
128
#
@@ -129,7 +131,7 @@ $(CODER_FAT_NOVERSION_BINARIES): build/coder_%: build/coder_$(VERSION)_%
129
131
# make build/coder-slim_windows_amd64.exe
130
132
$(CODER_SLIM_NOVERSION_BINARIES ) : build/coder-slim_% : build/coder-slim_$(VERSION ) _%
131
133
rm -f " $@ "
132
- ln -s " $$ (basename " $< " ) " " $@ "
134
+ ln " $< " " $@ "
133
135
134
136
# "fat" binaries always depend on the site and the compressed slim binaries.
135
137
$(CODER_FAT_BINARIES ) : site/out/index.html site/out/coder.tar.zst
@@ -215,6 +217,7 @@ $(CODER_ALL_ARCHIVES): $(CODER_FAT_BINARIES)
215
217
216
218
./scripts/archive.sh \
217
219
--format "$$ext" \
220
+ --os "$$os" \
218
221
--output "$@" \
219
222
"build/coder_$(VERSION)_$${os}_$${arch}$${bin_ext}"
220
223
@@ -301,7 +304,7 @@ $(CODER_ALL_IMAGES_PUSHED): push/%: %
301
304
# Shortcut for Helm chart package.
302
305
build/coder_helm.tgz : build/coder_helm_$(VERSION ) .tgz
303
306
rm -f " $@ "
304
- ln -s " $$ (basename " $< " ) " " $@ "
307
+ ln " $< " " $@ "
305
308
306
309
# Helm chart package.
307
310
build/coder_helm_$(VERSION ) .tgz :
0 commit comments