[skip ci] feat: Add Innosetup installer

This commit is contained in:
Lars Toenning
2024-11-02 17:12:14 +01:00
parent 54c28863c1
commit 5bc216d994
7 changed files with 889 additions and 33 deletions

View File

@@ -2,11 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
message(STATUS "Running windeployqt")
execute_process(COMMAND qmake -query QT_INSTALL_BINS OUTPUT_VARIABLE QT_INSTALL_BINS)
string(STRIP ${QT_INSTALL_BINS} QT_INSTALL_BINS)
execute_process(COMMAND ${QT_INSTALL_BINS}/windeployqt.exe
execute_process(COMMAND windeployqt.exe
${CMAKE_INSTALL_PREFIX}/bin/core.dll
${CMAKE_INSTALL_PREFIX}/bin/gui.dll
${CMAKE_INSTALL_PREFIX}/bin/input.dll
@@ -19,11 +15,8 @@ execute_process(COMMAND ${QT_INSTALL_BINS}/windeployqt.exe
--no-translations
--no-compiler-runtime
--no-system-d3d-compiler
--no-system-dxc-compiler
--no-opengl-sw
--no-webkit2
--no-virtualkeyboard
-opengl # not detected automatically
--skip-plugin-types generic,multimedia,networkinformation,qmltooling
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)
# Remove unused files
file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/bin/playlistformats ${CMAKE_INSTALL_PREFIX}/bin/styles)