Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-installer-qt5-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ jobs:
"C:\Qt\${{ env.QT_VERSION }}\${{ env.CMAKE_COMPILER }}\bin\windeployqt.exe" ^
"%CD%\${{ env.BUILD_DIR }}\${{ env.BUILD_TYPE }}\omodsim.exe" ^
--release ^
--no-angle ^
--no-quick ^
--no-svg ^
--no-opengl-sw ^
--no-system-d3d-compiler ^
--plugindir "%CD%\${{ env.BUILD_DIR }}\${{ env.BUILD_TYPE }}\plugins"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-installer-qt5-win64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ jobs:
"C:\Qt\${{ env.QT_VERSION }}\${{ env.CMAKE_COMPILER }}\bin\windeployqt.exe" ^
"%CD%\${{ env.BUILD_DIR }}\${{ env.BUILD_TYPE }}\omodsim.exe" ^
--release ^
--no-angle ^
--no-quick ^
--no-svg ^
--no-opengl-sw ^
--no-system-d3d-compiler ^
--plugindir "%CD%\${{ env.BUILD_DIR }}\${{ env.BUILD_TYPE }}\plugins"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-installer-qt6-win64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ jobs:
"%CD%\${{ env.BUILD_DIR }}\${{ env.BUILD_TYPE }}\omodsim.exe" ^
--release ^
--no-opengl-sw ^
--no-system-d3d-compiler ^
--no-system-dxc-compiler ^
--plugindir "%CD%\${{ env.BUILD_DIR }}\${{ env.BUILD_TYPE }}\plugins" ^
--skip-plugin-types help,generic,networkinformation,qmltooling,tls ^
--exclude-plugins qsqlibase,qsqlmimer,qsqloci,qsqlodbc,qsqlpsql
--exclude-plugins qgif,qjpeg,qpdf,qsqlibase,qsqlmimer,qsqloci,qsqlodbc,qsqlpsql,qsvg,qsvgicon
shell: cmd

- name: Install NSIS
Expand Down
38 changes: 29 additions & 9 deletions .nsis/installer-win32.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,39 @@
!define MUI_FINISHPAGE_RUN_TEXT "Launch ${NAME}"
!define MUI_FINISHPAGE_RUN_CHECKED

!searchparse /noerrors ${VERSION} "" VERSIONMAJOR "." VERSIONMINOR "." VERSIONPATCH "." VERSIONBUILD
!ifndef VERSIONBUILD
!define VERSIONBUILD "0"
!endif
!ifndef VERSIONPATCH
!define VERSIONPATCH "0"
!searchparse ${VERSION} "" VERSIONMAJOR "." VERSIONMINOR "-"
!endif
!searchparse /file ${LICENSE_FILE} "Copyright " COPYRIGHT

#--------------------------------
# Variables

Var /GLOBAL DISPLAYNAME
Var RebootRequired

#--------------------------------
# General

Name "${NAME} v${VERSION} (x86)"
OutFile "${OUTPUT_FILE}"
InstallDir "$PROGRAMFILES\${NAME}"
RequestExecutionLevel admin
SetCompressor /SOLID lzma
SetCompressorDictSize 64
VIProductVersion "${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONPATCH}.${VERSIONBUILD}"
VIFileVersion "${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONPATCH}.${VERSIONBUILD}"
VIAddVersionKey /LANG=0 "ProductVersion" "${VERSION}"
VIAddVersionKey /LANG=0 "FileVersion" "${VERSION}"
VIAddVersionKey /LANG=0 "ProductName" "${NAME}"
VIAddVersionKey /LANG=0 "FileDescription" "${NAME}"
VIAddVersionKey /LANG=0 "LegalCopyright" "Copyright (c) ${COPYRIGHT}"

#--------------------------------

!macro SetDisplayName un
Expand All @@ -52,14 +79,6 @@ Function un.onInit
Call un.SetDisplayName
FunctionEnd

#--------------------------------
# General

Name "${NAME} v${VERSION} (x86)"
OutFile "${OUTPUT_FILE}"
InstallDir "$PROGRAMFILES\${NAME}"
RequestExecutionLevel admin

#--------------------------------
# Pages

Expand All @@ -81,7 +100,7 @@ FunctionEnd

Section
SetOutPath $INSTDIR
File /r "${BUILD_PATH}\*"
File /r /x bearer /x canbus /x qgif.dll /x qicns.dll /x qjpeg.dll /x qtga.dll /x qtiff.dll /x qwbmp.dll /x qwebp.dll /x qsqlodbc.dll /x qsqlpsql.dll "${BUILD_PATH}\*"
WriteUninstaller $INSTDIR\uninstall.exe
SectionEnd

Expand Down Expand Up @@ -109,6 +128,7 @@ FunctionEnd
Section "Visual Studio Runtime"
SetOutPath "$INSTDIR"
ExecWait '"$INSTDIR\vc_redist.x86.exe" /install /quiet /norestart' $0
Delete "$TEMP\dd_vcredist*"

; 3010 = reboot required
${If} $0 == 3010
Expand Down
22 changes: 21 additions & 1 deletion .nsis/installer-win64.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
!define MUI_FINISHPAGE_RUN_TEXT "Launch ${NAME}"
!define MUI_FINISHPAGE_RUN_CHECKED

!searchparse /noerrors ${VERSION} "" VERSIONMAJOR "." VERSIONMINOR "." VERSIONPATCH "." VERSIONBUILD
!ifndef VERSIONBUILD
!define VERSIONBUILD "0"
!endif
!ifndef VERSIONPATCH
!define VERSIONPATCH "0"
!searchparse ${VERSION} "" VERSIONMAJOR "." VERSIONMINOR "-"
!endif
!searchparse /file ${LICENSE_FILE} "Copyright " COPYRIGHT

#--------------------------------
# Variables

Expand All @@ -33,6 +43,15 @@
OutFile "${OUTPUT_FILE}"
InstallDir "$PROGRAMFILES64\${NAME}"
RequestExecutionLevel admin
SetCompressor /SOLID lzma
SetCompressorDictSize 64
VIProductVersion "${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONPATCH}.${VERSIONBUILD}"
VIFileVersion "${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONPATCH}.${VERSIONBUILD}"
VIAddVersionKey /LANG=0 "ProductVersion" "${VERSION}"
VIAddVersionKey /LANG=0 "FileVersion" "${VERSION}"
VIAddVersionKey /LANG=0 "ProductName" "${NAME}"
VIAddVersionKey /LANG=0 "FileDescription" "${NAME}"
VIAddVersionKey /LANG=0 "LegalCopyright" "Copyright (c) ${COPYRIGHT}"

#--------------------------------
# Pages
Expand All @@ -55,7 +74,7 @@

Section
SetOutPath $INSTDIR
File /r "${BUILD_PATH}\*"
File /r /x bearer /x canbus /x qgif.dll /x qicns.dll /x qjpeg.dll /x qtga.dll /x qtiff.dll /x qwbmp.dll /x qwebp.dll /x qsqlodbc.dll /x qsqlpsql.dll "${BUILD_PATH}\*"
WriteUninstaller $INSTDIR\uninstall.exe
SectionEnd

Expand Down Expand Up @@ -83,6 +102,7 @@
Section "Visual Studio Runtime"
SetOutPath "$INSTDIR"
ExecWait '"$INSTDIR\vc_redist.x64.exe" /install /quiet /norestart' $0
Delete "$TEMP\dd_vcredist*"

; 3010 = reboot required
${If} $0 == 3010
Expand Down