How to download 'latest' version programatically #1450
Replies: 2 comments 3 replies
-
https://docs.github.com/en/repositories/releasing-projects-on-github/linking-to-releases e.g. https://github.com/jgraph/drawio-desktop/releases/latest |
Beta Was this translation helpful? Give feedback.
-
Thanks David. Is there any way you are able to apply a tag to the latest release and remove it from the last release each time you do a release? I hacked together this work-around script for now, but it is fragile as any change to the download paths, or your version numbering would break it. (EDIT: Someone more confident with regex could probably improve it)
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'd like to install this app as a part of a Linux SOE I'm building. I wish to use a native package (deb and rpm) but as there's no repository available, how can I ensure the systems I manage always have the latest version?
Github doesn't provide a 'latest' version tag and while I can see there's a "latest-linux.yml" file available, it only seems to be downloadable from the specific version URL of the release. I won't know these version numbers in advance.
So, how can I programmatically ensure that the latest version of the package is always sourced from here please?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions