-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More friendly batch files & error handling
- Loading branch information
1 parent
007ff07
commit ec595c4
Showing
2 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
@echo off | ||
|
||
::Check that needed programs exist in path | ||
where /q curl | ||
if %ERRORLEVEL% == 1 ( | ||
echo curl.exe not found in path! | ||
exit /b 1 | ||
) | ||
|
||
where /q 7z | ||
if %ERRORLEVEL% == 1 ( | ||
echo 7z.exe not found in path! | ||
exit /b 2 | ||
) | ||
|
||
curl -LsSO --output-dir %~dp0..\..\ https://download.qt.io/official_releases/jom/jom.zip | ||
"C:\Program Files\7-Zip\7z.exe" x -aoa -o%~dp0..\..\Qt\Tools\QtCreator\bin\ %~dp0..\..\jom.zip | ||
7z x -aoa -o%~dp0..\..\Qt\Tools\QtCreator\bin\ %~dp0..\..\jom.zip | ||
|
||
REM dir %~dp0..\..\ | ||
REM dir %~dp0..\..\Qt | ||
REM dir %~dp0..\..\Qt\Tools | ||
|
||
echo Success! | ||
::/b terminates the script without closing the CMD | ||
exit /b 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters