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

Version numbers of latest releases for automated install #44

Open
spl opened this issue Aug 30, 2021 · 0 comments
Open

Version numbers of latest releases for automated install #44

spl opened this issue Aug 30, 2021 · 0 comments

Comments

@spl
Copy link

spl commented Aug 30, 2021

Is there an easy way to programmatically get the version numbers or links to the packages for the latest released stable and devel packages for macOS and Windows? If there is not, would it be possible to add one?

Background

Currently, it's quite easy to do this for Ubuntu using the PPA. And this is used by the setup-swi-prolog GitHub Action to automate the installation of SWI-Prolog for continuous integration testing. However, this is not so easy to do for macOS and Windows using both the stable and devel releases.

See logtalk-actions/setup-swi-prolog#4 for more background and motivation.

Note that this is for an automated install, which does not appear to be the premise behind #22.

Request

What I think might work is to have a file for each of the release and platform combinations. In that file would be the version number of the latest. Consider something like this:

File name Contents
https://www.swi-prolog.org/download/stable/bin/macos-latest.txt 8.2.4-1
https://www.swi-prolog.org/download/stable/bin/windows-latest.txt 8.2.4-1
https://www.swi-prolog.org/download/devel/bin/macos-latest.txt 8.3.28-1
https://www.swi-prolog.org/download/devel/bin/windows-latest.txt 8.3.28-1

Then, if the package file names are consistently named, we could reconstruct the URL of the latest release for stable or devel, macOS or Windows.

These files would need to be updated on every stable or devel release. Is that something that could be automated?

Another option would be to have a “latest” URL that redirects to the latest package URL. For example:

https://www.swi-prolog.org/download/stable/bin/swipl-latest.x86_64.dmg ➡️
https://www.swi-prolog.org/download/stable/bin/swipl-8.2.4-1.x86_64.dmg

Alternative

If you don't think something like this would be reasonable to provide, I suppose we could scrape the HTML of https://www.swi-prolog.org/download/stable and https://www.swi-prolog.org/download/devel, but I think that is a fragile process and could break if the HTML changes.

Thanks for your consideration! Any feedback is welcome.

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

1 participant