From 34c615a5fddcb483dad529dc76ba81e7ff9ff9c3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 23 Apr 2019 22:28:28 -0700 Subject: [PATCH] Only include pre-compiled QML files in the installer and portable zips --- scripts/generate-installers.bat | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/generate-installers.bat b/scripts/generate-installers.bat index 7188700b..0d540f87 100644 --- a/scripts/generate-installers.bat +++ b/scripts/generate-installers.bat @@ -124,14 +124,16 @@ copy %SOURCE_ROOT%\app\SDL_GameControllerDB\gamecontrollerdb.txt %DEPLOY_FOLDER% if !ERRORLEVEL! NEQ 0 goto Error 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 +windeployqt.exe --dir %DEPLOY_FOLDER% --%BUILD_CONFIG% --qmldir %SOURCE_ROOT%\app\gui --no-opengl-sw --no-compiler-runtime --no-qmltooling %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 -) +forfiles /m *.qml /s /c "cmd /c qmlcachegen.exe @path" +if !ERRORLEVEL! NEQ 0 goto Error + +echo Deleting original QML files +forfiles /m *.qml /s /c "cmd /c del @path" +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