Skip to content
Permalink
Browse files

Build: appveyor.yml updated to reflect a solution name change

  • Loading branch information...
vookimedlo committed Apr 2, 2019
1 parent a0d8e69 commit a7d463f0bdfc6896a119150ea57b7674c2ce60cf
Showing with 42 additions and 18 deletions.
  1. +11 −3 .appveyor.yml
  2. +10 −3 build/cmake/windows/deploy-release.bat
  3. +11 −9 build/cmake/windows/generate.bat
  4. +10 −3 build/cmake/windows/package.bat
@@ -26,9 +26,17 @@ before_build:

build_script:
- cd \projects\vooki-image-viewer\build\cmake\windows
- generate.bat
- cd \projects\vooki-image-viewer\build\cmake\windows\build
- msbuild Project.sln /p:Configuration=Release /p:Platform=%platform%
- generate.bat no-qt-override
- build-release.bat

after_build:
- cd \projects\vooki-image-viewer\build\cmake\windows
- deploy-release.bat
- package.bat

artifacts:
- path: '**\*.msi'
name: Testing Installation

test: off

@@ -3,6 +3,13 @@ cd /D "%~dp0"

%QTDIR%\bin\windeployqt.exe --release --no-quick-import --no-system-d3d-compiler --compiler-runtime --no-webkit2 --no-opengl-sw --no-angle build\Release\VookiImageViewer.exe

robocopy build\Release\ build\Release\imageformats\ vooki_*.dll /MOV /IS /IT
robocopy 3rdPartyLibs\LibHEIF-1.4.0\lib\ build\Release\ *.dll /IS /IT
robocopy 3rdPartyLibs\LibDe265-1.0.3\lib\ build\Release\ *.dll /IS /IT
(robocopy build\Release\ build\Release\imageformats\ vooki_*.dll /MOV /IS /IT)
IF %%ERRORLEVEL%% GEQ 4 EXIT /b %%ERRORLEVEL%%

(robocopy 3rdPartyLibs\LibHEIF-1.4.0\lib\ build\Release\ *.dll /IS /IT)
IF %%ERRORLEVEL%% GEQ 4 EXIT /b %%ERRORLEVEL%%

(robocopy 3rdPartyLibs\LibDe265-1.0.3\lib\ build\Release\ *.dll /IS /IT)
IF %%ERRORLEVEL%% GEQ 4 EXIT /b %%ERRORLEVEL%%

EXIT /B 0
@@ -1,14 +1,16 @@
@echo off
cd /D "%~dp0"

mkdir build
cd build
if "%~1"=="no-qt-override" (
echo Don't forget to set proper Qt env. variables
) else (
echo Setting the Qt env. variables
set QTDIR=c:\Qt\5.12.2\msvc2017_64
set Qt5Core_DIR=%QTDIR%\lib\cmake\Qt5Core\
set Qt5Gui_DIR=%QTDIR%\lib\cmake\Qt5Gui\
set Qt5Widgets_DIR=%QTDIR%\lib\cmake\Qt5Widgets\
set Qt5_DIR=%QTDIR%\lib\cmake\Qt5
)

set QTDIR=c:\Qt\5.12.2\msvc2017_64
set Qt5Core_DIR=%QTDIR%\lib\cmake\Qt5Core\
set Qt5Gui_DIR=%QTDIR%\lib\cmake\Qt5Gui\
set Qt5Widgets_DIR=%QTDIR%\lib\cmake\Qt5Widgets\
set Qt5_DIR=%QTDIR%\lib\cmake\Qt5

cmake -G "Visual Studio 15 2017 Win64" -H. -Bbuild ..\..
cmake -G "Visual Studio 15 2017 Win64" -H. -Bbuild ..
cd /D "%~dp0"
@@ -2,8 +2,15 @@

cd /D "%~dp0"

robocopy build\Release\ "support\package\SourceDir\PFiles\Michal Duda\VookiImageViewer" * /MIR
(robocopy build\Release\ "support\package\SourceDir\PFiles\Michal Duda\VookiImageViewer" * /MIR)
IF %%ERRORLEVEL%% GEQ 4 EXIT /b %%ERRORLEVEL%%

if "%~1"=="release" (
SET name=VookiImageViewer-x64-win10.msi
) else (
SET name=VookiImageViewer-x64-win10-TESTING_BUILD.msi
)

cd support\package\
"C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe" -arch x64 .\package.xml
"C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe" -ext WixUIExtension .\package.wixobj -out VookiImageViewer-x64-win10.msi
"%WIX%\bin\candle.exe" -arch x64 .\package.xml
"%WIX%\bin\light.exe" -ext WixUIExtension .\package.wixobj -out %NAME%

0 comments on commit a7d463f

Please sign in to comment.
You can’t perform that action at this time.