Skip to content

Commit

Permalink
update logitech optionsplus
Browse files Browse the repository at this point in the history
  • Loading branch information
Utesgui authored Apr 18, 2024
1 parent 4197776 commit da8694e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Scripts/Update-Logitech.OptionsPlus.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if ($null -eq $versionInfo) {

Write-Host "Found latest version: $versionInfo"

$latestVersion = $versionInfo

$fullDownloadURL = $latestVersionUrl

$prMessage = "Update version: $wingetPackage version $latestVersion"
Expand Down Expand Up @@ -57,8 +59,8 @@ else {
}
elseif ($wingetVersions -and ($wingetVersions -notmatch $latestVersion)) {
Write-Output "Downloading wingetcreate and open PR for $wingetPackage Version $latestVersion"
# Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
# .\wingetcreate.exe update $wingetPackage -s -v $latestVersion -u "$latestVersionUrl" --prtitle $prMessage -t $gitToken
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
.\wingetcreate.exe update $wingetPackage -s -v $latestVersion -u "$latestVersionUrl" --prtitle $prMessage -t $gitToken
}
else {
Write-Output "$foundMessage"
Expand Down

0 comments on commit da8694e

Please sign in to comment.