arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

Make release binary name fixed.

Open dojyorin opened this issue 7 months ago • 2 comments
trafficstars

Describe the request

I think it would be better to remove version number from release binary name and make it a fixed name.

The advantage of this is that if you want to get latest release for example, you can get it with a single link like this:

curl https://github.com/arduino/arduino-cli/releases/latest/download/arduino-cli_Linux_64bit.tar.gz

Currently, because version number is included, two steps are required: first obtaining download url of latest release using GitHub API etc, and then accessing binary.

curl $(curl https://api.github.com/repos/arduino/arduino-cli/releases/latest | yq '.assets[] | select(.name == "*Linux_64bit.zip").browser_download_url')
arduino-cli_1.2.0_Linux_64bit.tar.gz
            ^^^^^

arduino-cli_Linux_64bit.tar.gz
           ^

Describe the current behavior

Release binaries contain version number.

Arduino CLI version

1.2.0

Operating system

N/A

Operating system version

Additional context

No response

Issue checklist

  • [x] I searched for previous requests in the issue tracker
  • [x] I verified the feature was still missing when using the nightly build
  • [x] My request contains all necessary details

dojyorin avatar Apr 19 '25 17:04 dojyorin

The advantage of this is that if you want to get latest release for example, you can get it with a single link like this:

Currently, because version number is included, two steps are required: first obtaining download url of latest release using GitHub API etc, and then accessing binary.

Hi, just chiming in 👋 Great idea! I know your pain. It does not solve your problem, but I always get the Arduino resources (CLI, language server, etc. ) from the official Arduino download servers. They're just superior to GH release assets.

I would not change the release artifacts name, though, but rather ask the Arduino people to redirect the no version or the latest version to the actual latest version on their official download servers; there was something like this in the past with the nightly Arduino IDE; it redirected to the actual latest nightly. (https://github.com/arduino/arduino-ide/blob/45f06718b4b1ca1d5917b1b68f45244072f11734/README.md?plain=1#L45-L48)

kittaakos avatar Apr 26 '25 10:04 kittaakos

Thank you for idea. I will try it :)

dojyorin avatar May 03 '25 16:05 dojyorin