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

How necessary is using tar.gz instead of zip? #62

Closed
ice1000 opened this issue Apr 5, 2024 · 2 comments · Fixed by #94
Closed

How necessary is using tar.gz instead of zip? #62

ice1000 opened this issue Apr 5, 2024 · 2 comments · Fixed by #94

Comments

@ice1000
Copy link
Contributor

ice1000 commented Apr 5, 2024

Is using .tar.gz for artifact an essential thing to do? Would it be very bad to upload using zip?

I'm working on making this to winget, which only works for zip rn, ref microsoft/winget-cli#2899

@Myriad-Dreamin
Copy link
Owner

tar are more widely deployed on unix machines.

It is smarter to provide zip for win platforms and tar.gz for rest platforms.

@Myriad-Dreamin
Copy link
Owner

This is handled by cargo-dist with one-line effort:

# The archive format to use for windows builds (defaults .zip)
windows-archive = ".zip"
# The archive format to use for non-windows builds (defaults .tar.xz)
unix-archive = ".tar.gz"

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

Successfully merging a pull request may close this issue.

2 participants