PrismLauncher/libraries/installQt5.ps1
Rachel Powers cd4b7a8a7b
feat(CmakePreset): add presets for every platform
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-07-31 21:31:56 -07:00

17 lines
619 B
PowerShell

$aqt_url = "https://github.com/miurahr/aqtinstall/releases/latest/download/aqt.exe"
$qt_path = ( Join-Path -Path "$PSScriptRoot" -ChildPath "Qt" )
New-Item -ItemType Directory -Path $qt_path -ErrorAction SilentlyContinue
$aqt_path = ( Join-Path -Path $qt_path -ChildPath "aqt.exe" )
if (!(Test-Path -Path $aqt_path)) {
Invoke-WebRequest -Uri $aqt_url -OutFile $aqt_path
}
$qt_ver = "5.15.2"
$qt_arch = "win32_msvc2019"
$aqt_install_args = @("install-qt", "windows", "desktop", $qt_ver, $qt_arch, "-m", "all", "--outputdir", $qt_path )
$p = Start-Process -FilePath $aqt_path -ArgumentList $aqt_install_args -Wait