How to download 'latest' version programatically #1450
Replies: 3 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.
-
|
In complement, and sorry if it's naive, but I wonder how the Ex for the .deb package : $ sha512sum /tmp/drawio-amd64-29.3.0.deb
2e2d3b98891ade20741e6be4384bdf77b76484356c7e839ff6dd305a242e83699f02654269e1293baaa144db46de61f697d5be35f99ecb5bcaa3ea1c11fcfca1 /tmp/drawio-amd64-29.3.0.deb
# some trials to check what could have been used...
$ openssl passwd -6 $(sha512sum /tmp/drawio-amd64-29.3.0.deb | awk '{print $1}')
$6$rzKnbX8OzL5FQjWf$WS7A45dMEuS51FPr4EkVfRx9vwq9kPl.obOjQgoyVhxtMNw2e612ui88t6O7lTJxxuv7P8jELLF0XeGSOqvCO0
$ sha512sum /tmp/drawio-amd64-29.3.0.deb | awk '{print $1}' | base64
MmUyZDNiOTg4OTFhZGUyMDc0MWU2YmU0Mzg0YmRmNzdiNzY0ODQzNTZjN2U4MzlmZjZkZDMwNWEy
NDJlODM2OTlmMDI2NTQyNjllMTI5M2JhYWExNDRkYjQ2ZGU2MWY2OTdkNWJlMzVmOTllY2I1YmNh
YTNlYTFjMTFmY2ZjYTEKwhen the manifest file proposes: # latest-linux.yml
version: 29.3.0
files:
- url: drawio-x86_64-29.3.0.AppImage
sha512: m9jWx5myc+Xf00SUH+Mh+i9lI+8rvqg71wNhS/j98/aDEbNXf3T+tREjUQ0aoT9UI+x0Gl3IU56omCcb0ClXGg==
size: 150957131
blockMapSize: 158815
- url: drawio-amd64-29.3.0.deb
sha512: Li07mIka3iB0HmvkOEvfd7dkhDVsfoOf9t0wWiQug2mfAmVCaeEpO6qhRNtG3mH2l9W+Nfmey1vKo+ocEfz8oQ==
size: 120171688
- url: drawio-x86_64-29.3.0.rpm
sha512: knfepqjiGITGPmpv8Nz28TkNvxCTnDTO3AZbuzjF/ykV5YVJm6E+2k4k7m4T6dGwCzodee9R1XlHkEKHSt1l1A==
size: 105561845
path: drawio-x86_64-29.3.0.AppImage
sha512: m9jWx5myc+Xf00SUH+Mh+i9lI+8rvqg71wNhS/j98/aDEbNXf3T+tREjUQ0aoT9UI+x0Gl3IU56omCcb0ClXGg==
releaseDate: '2026-01-08T23:39:02.267Z' |
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