@@ -91,17 +91,19 @@ build-fat build-full build: $(CODER_FAT_BINARIES)
91
91
release : $(CODER_FAT_BINARIES ) $(CODER_ALL_ARCHIVES ) $(CODER_ALL_PACKAGES ) $(CODER_ALL_ARCH_IMAGES ) build/coder_helm_$(VERSION ) .tgz
92
92
.PHONY : release
93
93
94
- build/coder-slim_$(VERSION ) _checksums.sha1 : $(CODER_SLIM_BINARIES )
94
+ build/coder-slim_$(VERSION ) _checksums.sha1 site/out/bin/coder.sha1 : $(CODER_SLIM_BINARIES )
95
95
pushd ./build
96
- openssl dgst -r -sha1 coder-slim_" $( VERSION) " _* | tee " $( @F ) "
96
+ openssl dgst -r -sha1 coder-slim_" $( VERSION) " _* | tee " coder-slim_ $( VERSION ) _checksums.sha1 "
97
97
popd
98
98
99
+ cp "build/coder-slim_$(VERSION)_checksums.sha1" "site/out/bin/coder.sha1"
100
+
99
101
build/coder-slim_$(VERSION ) .tar : build/coder-slim_$(VERSION ) _checksums.sha1 $(CODER_SLIM_BINARIES )
100
102
pushd ./build
101
103
tar cf " $( @F) " coder-slim_" $( VERSION) " _*
102
104
popd
103
105
104
- build/coder-slim_$(VERSION ) .tar.zst site/out/coder.tar.zst : build/coder-slim_$(VERSION ) .tar
106
+ build/coder-slim_$(VERSION ) .tar.zst site/out/bin/ coder.tar.zst : build/coder-slim_$(VERSION ) .tar
105
107
zstd -6 \
106
108
--force \
107
109
--ultra \
@@ -110,7 +112,7 @@ build/coder-slim_$(VERSION).tar.zst site/out/coder.tar.zst: build/coder-slim_$(V
110
112
-o " build/coder-slim_$( VERSION) .tar.zst" \
111
113
" build/coder-slim_$( VERSION) .tar"
112
114
113
- cp "build/coder-slim_$(VERSION).tar.zst" "site/out/coder.tar.zst"
115
+ cp "build/coder-slim_$(VERSION).tar.zst" "site/out/bin/ coder.tar.zst"
114
116
# delete the uncompressed binaries from the embedded dir
115
117
rm site/out/coder-*
116
118
@@ -134,7 +136,7 @@ $(CODER_SLIM_NOVERSION_BINARIES): build/coder-slim_%: build/coder-slim_$(VERSION
134
136
ln " $<" " $@ "
135
137
136
138
# "fat" binaries always depend on the site and the compressed slim binaries.
137
- $(CODER_FAT_BINARIES ) : site/out/index.html site/out/coder.tar.zst
139
+ $(CODER_FAT_BINARIES ) : site/out/index.html site/out/bin/ coder.tar.zst
138
140
139
141
# This is a handy block that parses the target to determine whether it's "slim"
140
142
# or "fat", which OS was specified and which architecture was specified.
0 commit comments