summaryrefslogtreecommitdiff
path: root/cerbero-uninstalled.ps1
blob: 0a9ba5843d1ffe42fef84f42bb12b9943b215ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
. "$PSScriptRoot\tools\common.ps1"

$WD = (Get-MSYS2)
if (!$WD) {
  Write-Host "Could not auto-detect MSYS2 install, please install it or run tools\bootstrap-windows.ps1"
  exit 1
}
Write-Host "Auto-detected MSYS2 install location as $WD"
$CerberoDir = $PSScriptRoot.replace('\', '/')
$args = $args.replace('\', '/')
Invoke-Expression "$WD\msys2_shell.cmd -ucrt64 -defterm -no-start -here -use-full-path -c `"$CerberoDir/cerbero-uninstalled $args`""