Skip to content

Commit

Permalink
Revert "win-installer test: revert to v5.3.0"
Browse files Browse the repository at this point in the history
This reverts commit 916b805.
  • Loading branch information
l0rd committed Dec 5, 2024
1 parent c2c1861 commit 82ea511
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contrib/win-installer/test-installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,13 @@ function Remove-Podman-Machine-Conf {
}

function Get-Latest-Podman-Setup-From-GitHub {
$tag = "5.3.0"
Write-Host "Downloading the $tag Podman windows setup from GitHub..."
$downloadUrl = "https://github.com/containers/podman/releases/download/v$tag/podman-$tag-setup.exe"
Write-Host "Downloading the latest Podman windows setup from GitHub..."
$apiUrl = "https://api.github.com/repos/containers/podman/releases/latest"
$response = Invoke-RestMethod -Uri $apiUrl -Headers @{"User-Agent"="PowerShell"} -ErrorAction Stop
$downloadUrl = $response.assets[0].browser_download_url
Write-Host "Downloading URL: $downloadUrl"
$destinationPath = "$PSScriptRoot\podman-$tag-setup.exe"
$latestTag = $response.tag_name
$destinationPath = "$PSScriptRoot\podman-$latestTag-setup.exe"
Write-Host "Destination Path: $destinationPath"
Invoke-WebRequest -Uri $downloadUrl -OutFile $destinationPath
Write-Host "Command completed successfully!`n"
Expand Down

0 comments on commit 82ea511

Please sign in to comment.