Skip to content

Commit

Permalink
fix(groupy): version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualex-itv committed Oct 1, 2024
1 parent e2bd102 commit e5b9195
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions automatic/groupy/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,21 @@ function global:au_GetLatest {

$Url = 'https://cdn.stardock.us/downloads/public/software/groupy/Groupy2_setup.exe'

$re = "Groupy (?<version>[\d\.]+[\d\.]+)"
$version = $releases -match $re | ForEach-Object { $Matches.version }
$re = "Groupy\s(?<version>\d+(\.\d+)+)\s*(?<beta>Beta)?"
$version = $releases.Content -match $re | ForEach-Object {
$versionNumber = $Matches.version

if ($versionNumber -notlike "*.*.*") {
$versionNumber += ".0"
}

if ($Matches.beta) {
$versionNumber + "-beta"
} else {
$versionNumber
}
}

$ChecksumType = 'sha256'

@{
Expand Down

0 comments on commit e5b9195

Please sign in to comment.