Skip to content

Commit

Permalink
Update Windows deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
gottcode committed Oct 2, 2016
1 parent b86ca5d commit 68ec6fe
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions windows/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
!define VERSIONMINOR 2
!define VERSIONPATCH 1
!define APPVERSION "${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONPATCH}"
!define ABOUTURL "http://gottcode.org/connectagram/"
!define ABOUTURL "https://gottcode.org/connectagram/"

;--------------------------------
;Includes
Expand Down Expand Up @@ -162,6 +162,24 @@ Section "install"
;Copy files
SetOutPath $INSTDIR
File ..\release\Connectagram.exe
File $%QTDIR%\bin\libgcc_s_dw2-1.dll
File $%QTDIR%\bin\libstdc++-6.dll
File $%QTDIR%\bin\libwinpthread-1.dll
File $%QTDIR%\bin\Qt5Core.dll
File $%QTDIR%\bin\Qt5Gui.dll
File $%QTDIR%\bin\Qt5Network.dll
File $%QTDIR%\bin\Qt5Widgets.dll

SetOutPath $INSTDIR\bearer
File $%QTDIR%\plugins\bearer\qgenericbearer.dll
File $%QTDIR%\plugins\bearer\qnativewifibearer.dll

SetOutPath $INSTDIR\platforms
File $%QTDIR%\plugins\platforms\qwindows.dll

SetOutPath $INSTDIR\translations
File ..\translations\*.qm
File $%QTDIR%\translations\qtbase_*.qm

SetOutPath $INSTDIR\data\en
File ..\data\en\*
Expand All @@ -172,10 +190,6 @@ Section "install"
SetOutPath $INSTDIR\data\ru
File ..\data\ru\*

SetOutPath $INSTDIR\translations
File ..\translations\*.qm
File $%QTDIR%\translations\qtbase_*.qm

;Create ReadMe file
SetOutPath $INSTDIR
File /oname=ReadMe.txt ..\README
Expand Down Expand Up @@ -244,12 +258,17 @@ Section "Uninstall"
;Remove files
Delete $INSTDIR\Connectagram.exe
Delete $INSTDIR\ReadMe.txt
Delete $INSTDIR\*.dll
Delete $INSTDIR\bearer\*.dll
Delete $INSTDIR\platforms\*.dll
Delete $INSTDIR\data\*\*
Delete $INSTDIR\translations\*.qm
Delete $INSTDIR\Uninstall.exe

;Remove directories
RMDir /r $INSTDIR\data
RMDir $INSTDIR\bearer
RMDir $INSTDIR\platforms
RMDir $INSTDIR\translations
RMDir $INSTDIR

Expand Down

0 comments on commit 68ec6fe

Please sign in to comment.