Skip to content

Commit

Permalink
version bump to 1.2.47.364
Browse files Browse the repository at this point in the history
- fixed logic for determining new version
  • Loading branch information
amd64fox committed Sep 24, 2024
1 parent f9391ab commit 4674f36
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ if (!($version -and $version -match $match_v)) {
}
else {
# Recommended version for Win 10-12
$onlineFull = "1.2.46.462.gf57913e0-290"
$onlineFull = "1.2.47.364.gf06e5cee-667"
}
}
else {
Expand Down Expand Up @@ -766,10 +766,9 @@ if ($spotifyInstalled) {
$country = [System.Globalization.RegionInfo]::CurrentRegion.EnglishName

$txt = [IO.File]::ReadAllText($spotifyExecutable)
$regex = "(\d+)\.(\d+)\.(\d+)\.(\d+)(\.g[0-9a-f]{8})"
$v = $txt | Select-String $regex -AllMatches
$ver = $v.Matches.Value[0]
if ($ver.Count -gt 1) { $ver = $ver[0] }
$regex = "(?<![\w\-])(\d+)\.(\d+)\.(\d+)\.(\d+)(\.g[0-9a-f]{8})(?![\w\-])"
$matches = [regex]::Matches($txt, $regex)
$ver = $matches[0].Value

$Parameters = @{
Uri = 'https://docs.google.com/forms/d/e/1FAIpQLSegGsAgilgQ8Y36uw-N7zFF6Lh40cXNfyl1ecHPpZcpD8kdHg/formResponse'
Expand Down

0 comments on commit 4674f36

Please sign in to comment.