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

Appropriate asset names in releases #104

Open
Chaitanyabsprip opened this issue Sep 10, 2023 · 5 comments
Open

Appropriate asset names in releases #104

Chaitanyabsprip opened this issue Sep 10, 2023 · 5 comments

Comments

@Chaitanyabsprip
Copy link

I am trying to inculcate the installation of gitmux in my dotfiles setup script. The names of the assets currently include the version of the asset as well. This makes it difficult to reliably download the latest binary.

@arl
Copy link
Owner

arl commented Sep 10, 2023

Hi.

This is a duplicate of #74

@arl
Copy link
Owner

arl commented Jun 9, 2024

Even if asset file names didn't have the version number, you'd still need the release number for the download URL.

example: https://github.com/arl/gitmux/releases/download/v0.11.2/gitmux_v0.11.2_linux_386.tar.gz

I think you could script a call to the GitHub API to obtain the latest version tag or the latest release

@Chaitanyabsprip
Copy link
Author

yes, that is how I'm currently handling it
my install-gitmux script

@arl
Copy link
Owner

arl commented Jun 9, 2024

Thanks for sharing.
This could be useful for other users.

If we had such a script in gitmux repository (i.e so at a fixed url) and if that script was accepting as parameters:

  • version tag (with latest meaning "the latest released version")
  • target os
  • target arch

Then that script could be used for those of you who wants to automate gitmux installation.

That script would still need to be updated (either manually or automatically) on git tags push (to let it know what's the new latest.

By doing so, that script wouldn't require any dependencies other than wget/curl to download the release.

That's a bit of work, not a lot, but I haven't got that time at the moment.

Accepting contributions!

@Chaitanyabsprip
Copy link
Author

I will make a PR

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

2 participants