Build kiwix-desktop without console only if we are doing a release.

`KIWIX_DESKTOP_RELEASE` is not enough to test as it will be not change
until the next commit. And we want nightly to build with console output.
This commit is contained in:
Matthieu Gautier 2020-07-01 11:31:51 +02:00
parent 7afa3f6a52
commit da62250d83
1 changed files with 10 additions and 4 deletions

View File

@ -3,10 +3,16 @@ REM Install kiwix-desktop
git clone https://github.com/kiwix/kiwix-desktop || exit /b 1
cd kiwix-desktop
echo "Running qmake"
SET _WITH_CONSOLE=1
IF %KIWIX_DESKTOP_RELEASE% EQU 1 (
C:\Qt\5.12\msvc2017_64\bin\qmake.exe "CONFIG+=static" || exit /b 1
) else (
IF %APPVEYOR_REPO_TAG%==true (
SET _WITH_CONSOLE=0
)
)
IF %_WITH_CONSOLE% EQU 1 (
C:\Qt\5.12\msvc2017_64\bin\qmake.exe "CONFIG+=static console" || exit /b 1
) else (
C:\Qt\5.12\msvc2017_64\bin\qmake.exe "CONFIG+=static" || exit /b 1
)
echo "Running fix_desktop"