Qt IFW generate .exe installer on Linux
-
Hi folks,
I would like to build a Windows installer on Linux, using Qt IFW.
However, the extension of the generated artifact is .run, not .exe.
I found a way to change the extension to .exe (setting CPACK_IFW_PACKAGE_FILE_EXTENSION in CMake),
but this only renames the file, the actual content of the artifact is not changed.
So I cannot run this .exe file on Windows.
Is there a proper solution to this problem?Thanks,
Lajos Gurzo -
Hi folks,
I would like to build a Windows installer on Linux, using Qt IFW.
However, the extension of the generated artifact is .run, not .exe.
I found a way to change the extension to .exe (setting CPACK_IFW_PACKAGE_FILE_EXTENSION in CMake),
but this only renames the file, the actual content of the artifact is not changed.
So I cannot run this .exe file on Windows.
Is there a proper solution to this problem?Thanks,
Lajos Gurzo@devdevdev
Hello and welcome.Does Qt IFW support building a Windows installer from Linux? Surely the
.run
file is a Linux executable or script file? -
@devdevdev
Hello and welcome.Does Qt IFW support building a Windows installer from Linux? Surely the
.run
file is a Linux executable or script file?@JonB
Thanks for the reply.Does Qt IFW support building a Windows installer from Linux?
This is what I want to find out.
Surely the .run file is a Linux executable or script file?
If the host platform is Linux, Qt IFW will generate a .run file at the end (executable file on Linux), regardless of the target platform.
Would be great to say the following: if the target platform is Windows, generate and .exe, otherwise generate a .run file.Is it possible to do?
-
Hi,
Just guessing but I would say no.
Beside that, did you cross-compile your application for Windows as well ?