Skip to content

Commit

Permalink
fix loupedeck download url
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mnich committed Apr 17, 2024
1 parent 75b3ec3 commit b089f9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scripts/Update-Loupedeck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ if ($wingetVersions.Contains($versionInfo)) {
}

# extract major and minor version e.g. 5.9 from 5.9.10
$majorMinorVersion = $versionInfo -replace '\.\d+.\d+$'
$majorMinorVersion = $versionInfo -replace '\.\d+$'
$fullDownloadURL = "https://5145542.fs1.hubspotusercontent-na1.net/hubfs/5145542/Knowledge%20Base/LD%20Software%20Downloads/$majorMinorVersion/LoupedeckInstaller_" + $versionInfo + ".exe"

Write-Host "Full download URL: $fullDownloadURL"

# check if full download URL is valid
$fullDownloadURLResponse = Invoke-WebRequest -Uri $fullDownloadURL -UseBasicParsing -Method Head
if ($fullDownloadURLResponse.StatusCode -ne 200) {
Expand Down

0 comments on commit b089f9f

Please sign in to comment.