Skip to content

Commit

Permalink
feat: add zip version when compressing all binaries (editorconfig-che…
Browse files Browse the repository at this point in the history
…cker#321) (editorconfig-checker#362)

This adds a zip archive to the output of the compress-all-binaries sub-task in
order to provide better compatiblitiy with Windows.

Windows does not come with the ability to handle tar.gz (until now the only
output format) and, hence, users cannot easily use the prebuilt binaries
distributed via GitHub. Further integration into, for example, the winget
community packages is also prevented by this.

Zip was chosen as an _additional_ output format in order to not create an
unexpected/breaking change for consumers of the existing tar.gz format.

Windows is not handled specifically here in order to keep the process of
providing build artifacts as simple as possible.
  • Loading branch information
Okeanos authored Aug 23, 2024
1 parent 83a0036 commit f1bb625
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ _build-all-binaries:
_compress-all-binaries:
for f in bin/*; do \
tar czf $$f.tar.gz $$f; \
zip $$f.zip $$f; \
rm -f $$f; \
done

Expand Down

0 comments on commit f1bb625

Please sign in to comment.