Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress releases with tar.xz and tar.gz #666

Open
coolaj86 opened this issue Dec 14, 2023 · 4 comments
Open

Compress releases with tar.xz and tar.gz #666

coolaj86 opened this issue Dec 14, 2023 · 4 comments

Comments

@coolaj86
Copy link

Just about all the Linuxes (and the macOS GUI) support tar.xz out-of-the-box.

Windows 10 and Windows 11 (and the remaining Linuxes, BSDs, and macOSes) support tar.gz out-of-the-box (though I'm not sure about .gz).

Would you consider compressing these releases?

@coolaj86 coolaj86 changed the title Compress with tar.xz and tar.gz Compress releases with tar.xz and tar.gz Dec 14, 2023
@mfridman
Copy link
Collaborator

Not opposed to it, although it might be a breaking change for some users who are manually downloading the archives as raw binaries.

Ideally, they'd be using the install script https://github.com/pressly/goose/blob/master/install.sh

I presume we could lean on goreleaser to handle compression, https://goreleaser.com/customization/archive/

Or were you thinking something else?

@coolaj86
Copy link
Author

Yes, you can have multiple archives with goreleaser, so no need to break anything.

I'm curious if there's a way to configure it to use opt-style archives with the binary already in a bin folder.

I may be adding this to https://webinstall.dev. I want something to recommend for SQL migrations that works well for Node, Go, Rust and Zig projects.

@mfridman
Copy link
Collaborator

mfridman commented Dec 14, 2023

If you give me the exact layout you're looking for (or point at an existing thing), I could put something together or you can submit a PR (I'm easy). If folks prefer archives I'm all for it, ideally, we pick the most common one.

I know @caarlos0 has put a lot of effort into the GoReleaser project so I wouldn't be surprised if things just work with a few config options.

@caarlos0
Copy link

yes, you can have multiple archives in the archive section, with different names/formats/etc :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants