File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ $(EXECUTABLE): $(SOURCES)
234
234
$(GO ) build $(GOFLAGS ) $(EXTRA_GOFLAGS ) -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)' -o $@
235
235
236
236
.PHONY : release
237
- release : release-dirs release-windows release-linux release-darwin release-copy release-check
237
+ release : release-dirs release-windows release-linux release-darwin release-copy release-compress release- check
238
238
239
239
.PHONY : release-dirs
240
240
release-dirs :
@@ -278,6 +278,13 @@ release-copy:
278
278
release-check :
279
279
cd $(DIST ) /release; $(foreach file,$(wildcard $(DIST ) /release/$(EXECUTABLE ) -* ) ,sha256sum $(notdir $(file ) ) > $(notdir $(file ) ) .sha256;)
280
280
281
+ .PHONY : release-compress
282
+ release-compress :
283
+ @hash gxz > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
284
+ $(GO ) get -u github.com/ulikunitz/xz/cmd/gxz; \
285
+ fi
286
+ cd $(DIST ) /release; $(foreach file,$(wildcard $(DIST ) /binaries/$(EXECUTABLE ) -* ) ,gxz -k -9 $(notdir $(file ) ) ;)
287
+
281
288
.PHONY : javascripts
282
289
javascripts : public/js/index.js
283
290
You can’t perform that action at this time.
0 commit comments