mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-28 02:34:34 +00:00
Page:
QuickGuide
Pages
Build and Install
CompareFeatures
CompareFeaturesRu
DeployConfigFileEn
DeployConfigFileRu
Description
Donate_Footer
Guide
Home
Languages_Sidebar
Options
Packing(en)
Packing(ru)
QIF(en)
QIF(ru)
QuickGuide
ZIP(en)
ZIP(ru)
Домашняя страничка
КраткоеРуководство
Описание
Параметры
Руководство
Сборка и Установка
Clone
4
QuickGuide
Andrei Yankovich edited this page 2020-06-23 15:08:08 +03:00
Table of Contents
How to deploy project with cqtdeployer.
-
First one you need to install cqtdeployer into your platform
- Snap (14 more linux destributions):
sudo snap install cqtdeployer
Or
Install from snap store and add all requirement permissions.
- Other linux LinuxInstaller.run.
chmod +x LinuxInstaller.run ./LinuxInstaller.run
- Windows installer
-
Build your project on release mode.
-
Deploy yor executable file.
- For Linux systems:
cqtdeployer -bin myexecutable
- For Windows systems:
cqtdeployer -bin myexecutable.exe -qmake C:/Qt/5.15.0/min_gw/bin/qmake.exe
- For crossplatform build (Linux -> Windows)
cqtdeployer -bin myexecutable.exe -qmake ~/crossbuildet-Qt/5.15.0/min_gw/bin/qmake
Extra options
If you use extra libraries, just add path for cqtdeployer to used libs.
cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs
If you want find libraries recursively from libDir path, just add recursive Depth option.
cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs -recursiveDepth 5
If you application use qml, just add qmlDir option
cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs -recursiveDepth 5 -qmlDir /path/to/my/qml/sources
If you want create simple installer for your application just add gif option.
cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs -recursiveDepth 5 -qmlDir /path/to/my/qml/sources qif
If you use system libraries from system PATH, just add deploySystem option.
Warning: snap version do not have permision to system files. To deploy system libraries use the cqtdeployer version from the installer
cqtdeployer -bin myexecutable -libDir /PathToMyExtraLibs -recursiveDepth 5 -qmlDir /path/to/my/qml/sources qif deploySystem