Giter VIP home page Giter VIP logo

Comments (4)

AScott-WWF avatar AScott-WWF commented on June 17, 2024 1

I too could be keen on the addition of this however there are two branches
Current (which you have alluded to)
LTS

As we use the LTS version (installed using the OSGeo4W installer), I wrote a web scrape to check the page for a later 'LTS' version.

$DownloadsUrl = "https://www.qgis.org/en/site/forusers/download.html"
# Now determine the Version of the latest available version of the installer:
$PageContent = (Invoke-WebRequest -UseBasicParsing -Uri $DownloadsUrl).Links
# Obtain Url to the latest .msi, from link below 'Looking for the most stable version? Get QGIS x.xx LTR' text on webpage, and Version number is obtained easiest from the filename within the $SourceUrl
[version]$LatestVersion = ((($PageContent | Where-Object {$_.OuterHtml -like '<a class="reference secondary-download-link" href="https://qgis.org/downloads/QGIS-OSGeo4W-*.msi">*Looking for the most stable version? Get QGIS * LTR*</a>'}).href).split("-")[2]).Trim()
Write-Output "Latest version of QGIS LTR is:    $($LatestVersion)"

It would be nice however if there was an EverGreen function to do this (rather then relying on a webscrape that could break at any time QGIS change the web site)

from evergreen.

jms-du-se avatar jms-du-se commented on June 17, 2024

Yes, it would be nice to have an Evergreen function for this.
Somehow the latest LTS version is detected during the version check, even though this check uses the same version.txt file

from evergreen.

aaronparker avatar aaronparker commented on June 17, 2024

version.txt is returning as HTML for me. Is that's what's intended?

The version number can also be gathered from here: https://github.com/qgis/QGIS

from evergreen.

jms-du-se avatar jms-du-se commented on June 17, 2024

Hi Aaron,

The version.txt includes html that's being displayed in the update notification window.

I searched their GitHub site before, but didn't find a way to identify the latest LTS release.
The latest regular release isn't a problem.

/Jasper

from evergreen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.