Skip to content

Instantly share code, notes, and snippets.

@adotcoop
Last active June 12, 2023 23:14
Show Gist options
  • Save adotcoop/4de87244ec19fbac5de1c0c88260f84c to your computer and use it in GitHub Desktop.
Save adotcoop/4de87244ec19fbac5de1c0c88260f84c to your computer and use it in GitHub Desktop.
Returns url of latest version of BlueJ for Windows
# To discover this had to run fiddler and check for updates within the app
# To force bluej through a web proxy had to add this to C:\Program Files\BlueJ\lib\bluej.defs
# bluej.windows.vm.args=-Djavafx.embed.singleThread=true -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888
$download = "https://www.bluej.org/download/files/BlueJ-windows-$($ver).msi"
$Updatefeed = Invoke-WebRequest -UseBasicParsing -uri http://www.bluej.org/version.info
$Updates = [System.Text.Encoding]::UTF8.GetString($Updatefeed.Content)
$LatestVersion = $updates.split([Environment]::NewLine)[0]
$ver = $LatestVersion.Replace(".", "")
$url = "https://www.bluej.org/download/files/BlueJ-windows-$($ver).msi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment