Add more Qt libraries to installer script.

This commit is contained in:
Jean-Philip Desjardins 2019-02-28 17:58:51 -05:00
parent 60ed82294d
commit 15d30e574f
3 changed files with 10 additions and 25 deletions

View File

@ -6,7 +6,8 @@ cd build
if "%BUILD_PLAY%" == "ON" (
cmake .. -G"%BUILD_TYPE%" -T v141_xp -DUSE_QT=on -DCMAKE_PREFIX_PATH="C:\Qt\5.12\%QT_FLAVOR%"
cmake --build . --config %CONFIG_TYPE%
c:\Qt\5.12\%QT_FLAVOR%\bin\windeployqt.exe ./Source/ui_qt/Release --no-system-d3d-compiler --no-quick-import --no-opengl-sw --no-compiler-runtime --no-translations
cd ..
"C:\Program Files (x86)\NSIS\makensis.exe" ./installer_win32/%INSTALLER_SCRIPT%

View File

@ -66,6 +66,8 @@ Section "Play! (required)"
File "..\build\Source\ui_qt\Release\Qt5Core.dll"
File "..\build\Source\ui_qt\Release\Qt5Gui.dll"
File "..\build\Source\ui_qt\Release\Qt5Widgets.dll"
File "..\build\Source\ui_qt\Release\platforms\qwindows.dll"
File "..\build\Source\ui_qt\Release\styles\qwindowsvistastyle.dll"
File "..\Readme.html"
File "..\Changelog.html"
File "..\Patches.xml"
@ -106,20 +108,10 @@ Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "${REG_UNINSTALL}"
DeleteRegKey HKLM SOFTWARE\NSIS_Play
; Remove files and uninstaller
Delete $INSTDIR\Play.exe
Delete $INSTDIR\Qt5Core.dll
Delete $INSTDIR\Qt5Gui.dll
Delete $INSTDIR\Qt5Widgets.dll
Delete $INSTDIR\Readme.html
Delete $INSTDIR\Changelog.html
Delete $INSTDIR\Patches.xml
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\Play!\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\Play!"
RMDir "$INSTDIR"

View File

@ -67,6 +67,8 @@ Section "Play! (required)"
File "..\build\Source\ui_qt\Release\Qt5Core.dll"
File "..\build\Source\ui_qt\Release\Qt5Gui.dll"
File "..\build\Source\ui_qt\Release\Qt5Widgets.dll"
File "..\build\Source\ui_qt\Release\platforms\qwindows.dll"
File "..\build\Source\ui_qt\Release\styles\qwindowsvistastyle.dll"
File "..\Readme.html"
File "..\Changelog.html"
File "..\Patches.xml"
@ -109,20 +111,10 @@ Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "${REG_UNINSTALL}"
DeleteRegKey HKLM SOFTWARE\NSIS_Play
; Remove files and uninstaller
Delete $INSTDIR\Play.exe
Delete $INSTDIR\Qt5Core.dll
Delete $INSTDIR\Qt5Gui.dll
Delete $INSTDIR\Qt5Widgets.dll
Delete $INSTDIR\Readme.html
Delete $INSTDIR\Changelog.html
Delete $INSTDIR\Patches.xml
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\Play!\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\Play!"
RMDir "$INSTDIR"