replace go script with PowerShell script for downloading MSYS2 archive

This commit is contained in:
uncor3
2026-01-30 23:26:25 +00:00
parent b6a38ec4bd
commit 1740c7d0ce
3 changed files with 43 additions and 137 deletions
+2 -29
View File
@@ -44,38 +44,11 @@ jobs:
release: false
update: false
# FIXME: use ./util/get-msys2-archive.go to download the archive db
# for now, since we install go from pacman, we better do it this way
- name: Use msys2 archive
shell: pwsh
run: |
# Base URL for the 2025-06-22 MSYS2 archive release
$baseUrl = "https://github.com/msys2/msys2-archive/releases/download/2025-06-22"
$databases = @(
"clang64",
"clangarm64",
"mingw32",
"mingw64",
"msys",
"ucrt64"
)
$targetDir = "C:\msys64\var\lib\pacman\sync"
foreach ($db in $databases) {
$dbUrl = "$baseUrl/$db.db"
$sigUrl = "$baseUrl/$db.db.sig"
$dbFile = Join-Path $targetDir "$db.db"
$sigFile = Join-Path $targetDir "$db.db.sig"
Write-Host "Downloading $db.db ..."
Invoke-WebRequest -Uri $dbUrl -OutFile $dbFile
Write-Host "Downloading $db.db.sig ..."
Invoke-WebRequest -Uri $sigUrl -OutFile $sigFile
}
$date = "2025-06-22"
& "scripts/get-msys2-archive.ps1" -Date $date
- name: Install deps using pacman
run: |