Newer
Older
TelosDB / .scripts / check_toolchain.ps1
@楽曲作りまくりおじさん 楽曲作りまくりおじさん 15 hours ago 452 bytes build: improve Windows resource compile logging and error messages
$names = 'rc.exe','cvtres.exe','link.exe'
foreach ($n in $names) {
  Write-Host "---- $n ----"
  $paths = @()
  try { $paths = & where.exe $n } catch { }
  if (-not $paths) { Write-Host "Not found"; continue }
  foreach ($p in $paths) {
    Write-Host $p
    $v = (Get-Item $p).VersionInfo
    Write-Host "  FileVersion: $($v.FileVersion)"
    Write-Host "  ProductVersion: $($v.ProductVersion)"
    Write-Host "  CompanyName: $($v.CompanyName)"
  }
}