Closed Eijebong closed 2 years ago
A fair idea! :+1:
(Would even be better if the version was changed within the zip file or removed so it wouldn't be a pita to add it to the PATH)
Sure, but removing the versioned directory name within the package will also have that downside that it will easier accidentally overwrite files. A different subject.
Anyway, I've poked on some scripts and I'm thinking we can provide the following fixed URLs to get the latest windows zip files (they work right now):
https://curl.se/windows/curl-win32-latest.zip https://curl.se/windows/curl-win64-latest.zip
Thoughts @vszakats ?
@bagder: This looks like the best solution!
As for removing versions from the internal root dir, I'm not in favour, but tar --strip-components 1
can resolve it cleanly when unpacking. Also, unzip -j curl-win64-latest.zip "*/curl.exe"
can get the self-contained .exe, or unzip -j curl-win64-latest.zip
the complete, flat content of the zip.
We should probably add those links to https://curl.se/windows/ as well, I'm just not sure exactly how/where.
One option is to add the current versioned curl links to a topmost, new curl
line to the "Specifications" section and changing the header slightly:
curl 7.81.0 was built and statically linked with
→
curl 7.81.0 versioned links and dependencies
Then replace the versioned main links with the unversioned ones in the 'Packages' section. ...not perfect, I'd personally prefer versioned links as the primary ones, plus this makes it less clear how the depencencies and the main curl package are related.
Or, maybe just add a new section 'Direct links to the latest version' with the two new links?
Links added. Case closed!
Hey, would be nice to have a download link always pointing at the latest release for automated jobs.
7.79.1_4
just disappeared breaking some CI jobs for me. This isn't the first time this happens. I see from #11 that there was a way to do so but bintray seems to have been remove a while ago and I couldn't find anything on https://curl.se/windows that would point me to a latest binary.