2024-06-04 18:29:19 +01:00
|
|
|
echo %*
|
2024-11-17 17:05:54 +00:00
|
|
|
IF "%~7" == "" ( set "ghQtBuilds_hash_x64=673c288feeabd11ec66f9f454d49cde3945cbd3e3f71283b7a6c4df0893b19f2" ) ELSE ( set "ghQtBuilds_hash_x64=%~7" )
|
|
|
|
IF "%~6" == "" ( set "ghQtBuilds_hash_x86=502e9a36a52918af4e116cd74c16c6c260d029087aaeee3775ab0e5d3f6a2705" ) ELSE ( set "ghQtBuilds_hash_x86=%~6" )
|
2024-06-04 18:29:19 +01:00
|
|
|
IF "%~5" == "" ( set "ghQtBuilds_repo=qt-builds" ) ELSE ( set "ghQtBuilds_repo=%~5" )
|
|
|
|
IF "%~4" == "" ( set "ghQtBuilds_user=xanasoft" ) ELSE ( set "ghQtBuilds_user=%~4" )
|
|
|
|
IF "%~3" == "" ( set "qt6_version=6.3.1" ) ELSE ( set "qt6_version=%~3" )
|
2024-11-17 17:05:54 +00:00
|
|
|
IF "%~2" == "" ( set "qt_version=5.15.16" ) ELSE ( set "qt_version=%~2" )
|
2024-06-04 18:29:19 +01:00
|
|
|
|
2024-03-10 15:12:34 +00:00
|
|
|
if %1 == Win32 (
|
2024-06-04 18:29:19 +01:00
|
|
|
if exist %~dp0..\..\Qt\%qt_version%\msvc2019\bin\qmake.exe goto done
|
2024-03-10 15:12:34 +00:00
|
|
|
|
2024-06-04 18:29:19 +01:00
|
|
|
curl -LsSO --output-dir %~dp0..\..\ https://github.com/%ghQtBuilds_user%/%ghQtBuilds_repo%/releases/download/v%qt_version%-ssl-lgpl/qt-everywhere-%qt_version%-Windows_10-MSVC2019-x86.7z
|
|
|
|
"C:\Program Files\7-Zip\7z.exe" x -aoa -o%~dp0..\..\Qt\ %~dp0..\..\qt-everywhere-%qt_version%-Windows_10-MSVC2019-x86.7z
|
|
|
|
certutil -hashfile %~dp0..\..\qt-everywhere-%qt_version%-Windows_10-MSVC2019-x86.7z SHA256 | find /i "%ghQtBuilds_hash_x86%"
|
2024-03-10 15:12:34 +00:00
|
|
|
)
|
|
|
|
if %1 == x64 (
|
2024-06-04 18:29:19 +01:00
|
|
|
if exist %~dp0..\..\Qt\%qt_version%\msvc2019_64\bin\qmake.exe goto done
|
2024-03-10 15:12:34 +00:00
|
|
|
|
2024-06-04 18:29:19 +01:00
|
|
|
curl -LsSO --output-dir %~dp0..\..\ https://github.com/%ghQtBuilds_user%/%ghQtBuilds_repo%/releases/download/v%qt_version%-ssl-lgpl/qt-everywhere-%qt_version%-Windows_10-MSVC2019-x86_64.7z
|
|
|
|
"C:\Program Files\7-Zip\7z.exe" x -aoa -o%~dp0..\..\Qt\ %~dp0..\..\qt-everywhere-%qt_version%-Windows_10-MSVC2019-x86_64.7z
|
|
|
|
certutil -hashfile %~dp0..\..\qt-everywhere-%qt_version%-Windows_10-MSVC2019-x86_64.7z SHA256 | find /i "%ghQtBuilds_hash_x64%"
|
2024-03-10 15:12:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if %ERRORLEVEL% == 1 exit /b 1
|
|
|
|
|
|
|
|
:done
|
|
|
|
|
|
|
|
REM dir %~dp0..\..\
|
|
|
|
REM dir %~dp0..\..\Qt
|
2024-06-04 18:29:19 +01:00
|
|
|
REM dir %~dp0..\..\Qt\%qt_version%
|