From a05816b495546f478d3903d5731fa38fb9d748d9 Mon Sep 17 00:00:00 2001 From: cgutman1 Date: Mon, 22 Apr 2019 21:04:21 -0700 Subject: [PATCH] Pre-generate QML cache for our QtQuick dependences. Fixes #217 --- scripts/generate-installers.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/generate-installers.bat b/scripts/generate-installers.bat index a14793f9..7188700b 100644 --- a/scripts/generate-installers.bat +++ b/scripts/generate-installers.bat @@ -127,6 +127,12 @@ echo Deploying Qt dependencies windeployqt.exe --dir %DEPLOY_FOLDER% --%BUILD_CONFIG% --qmldir %SOURCE_ROOT%\app\gui --no-opengl-sw --no-compiler-runtime %BUILD_FOLDER%\app\%BUILD_CONFIG%\Moonlight.exe if !ERRORLEVEL! NEQ 0 goto Error +echo Generating QML cache +for /r "%DEPLOY_FOLDER%" %%f in (*.qml) do ( + qmlcachegen.exe %%f + if !ERRORLEVEL! NEQ 0 goto Error +) + echo Harvesting files for WiX "%WIX%\bin\heat" dir %DEPLOY_FOLDER% -srd -sfrag -ag -sw5150 -cg MoonlightDependencies -var var.SourceDir -dr INSTALLFOLDER -out %BUILD_FOLDER%\Dependencies.wxs if !ERRORLEVEL! NEQ 0 goto Error