mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-12 20:32:27 +00:00
Reduce size of Windows installers and portable packages
This commit is contained in:
parent
202ce14afa
commit
766a923f86
1 changed files with 11 additions and 1 deletions
|
@ -147,9 +147,19 @@ 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 --no-qmltooling %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 --no-virtualkeyboard --no-sql %BUILD_FOLDER%\app\%BUILD_CONFIG%\Moonlight.exe
|
||||
if !ERRORLEVEL! NEQ 0 goto Error
|
||||
|
||||
echo Deleting unused styles
|
||||
rem Qt 5.x directories
|
||||
rmdir /s /q %DEPLOY_FOLDER%\QtQuick\Controls.2\Fusion
|
||||
rmdir /s /q %DEPLOY_FOLDER%\QtQuick\Controls.2\Imagine
|
||||
rmdir /s /q %DEPLOY_FOLDER%\QtQuick\Controls.2\Universal
|
||||
rem Qt 6.x directories
|
||||
rmdir /s /q %DEPLOY_FOLDER%\QtQuick\Controls\Fusion
|
||||
rmdir /s /q %DEPLOY_FOLDER%\QtQuick\Controls\Imagine
|
||||
rmdir /s /q %DEPLOY_FOLDER%\QtQuick\Controls\Universal
|
||||
|
||||
echo Generating QML cache
|
||||
forfiles /p %DEPLOY_FOLDER% /m *.qml /s /c "cmd /c qmlcachegen.exe @path"
|
||||
if !ERRORLEVEL! NEQ 0 goto Error
|
||||
|
|
Loading…
Reference in a new issue