dekoning-lab / WFES2-GUI

GUI implementation of wfes2.
GNU General Public License v3.0
0 stars 1 forks source link

Deploy for Windows #18

Closed AlbertoCasasOrtiz closed 3 years ago

AlbertoCasasOrtiz commented 4 years ago

Deploy the application for Windows.

AlbertoCasasOrtiz commented 3 years ago

Deployment instructions:

  1. Copy generated binaries to a separated folder.

  2. Execute windeployqt, indicating the qml directory. The qml directory is the directory containing the first qrc file.

path\to\windeplotqt.exe \path\to\generated\binary.exe --qmldir=\path\to\qml\dir

C:\Qt\5.15.1\msvc2019_64\bin\windeplotqt.exe C:\Qt\5.15.1\msvc2019_64\bin\deploy\wfes-ui.exe --qmldir=C:\Workspaces\Qt\wfes-gui\wfes-ui
  1. Copy other required libraries to the folder:
libiomp5md.dll
mkl_avx.dll
mkl_avx2.dll
mkl_core.dll
mkl_intel_thread.dll
mkl_mvl_avx.dll
mkl_mvl_avx2.dll
  1. If the program is not working as expected, execute from console, redirecting outputs to a txt file, to see errors:
wfes-ui.exe > output.txt
AlbertoCasasOrtiz commented 3 years ago

Installer instructions:

  1. Create a folder with the following structure. In Qt examples there are templates for this.
    
    "AppInstaller"/config/config.xml
    "AppInstaller"/packages/com.vendor.appname/data/"All deployment files here"
    "AppInstaller"/packages/com.vendor.appname/meta/license.txt
    "AppInstaller"/packages/com.vendor.appname/meta/package.xml
    "AppInstaller"/packages/com.vendor.appname/meta/"Optional ui files and installation script"

2. Modify config.xml and package.xml files. change vendor and AppName in package folder.

3. Open a command prompt, change directory to the root of the created directory structure, and execute Qt binarycreator.exe. The last element is the name of the installer.
`C:\Qt\Tools\QtInstallerFramework\3.2\bin\binarycreator.exe --offline-only -c config\config.xml -p packages "wfes-gui installer"`

4. Now, the application can be installed in any Windows device.
AlbertoCasasOrtiz commented 3 years ago

The installer is currently working in Windows. It has been tested in a computer that has never had Qt installed.

The only problem is that it says that the supplier is unknown, so windows shows a warning before proceeding with the installation.

The installed application its working perfectly.