4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-05-09 07:59:37 +00:00

Merge pull request from QuasarApp/update_docs

update documentations
This commit is contained in:
Andrei Yankovich 2022-10-19 19:52:13 +03:00 committed by GitHub
commit 35aa6e32cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 146 additions and 29 deletions

74
md/en/1_6.md Executable file

@ -0,0 +1,74 @@
# Release of CQtDeployer v1.6
Release of the C++/Qt and QML application deployment utility CQtDeployer v1.6
This is major release that include more improvements in build system.
From now cqtdeployer using CMake build system. So from now build from source will be easier.
## Complete list of all changes
## CQtDeployer 1.6
### New features
- Move to Cmake build system
- Refactoring all project structure
- Improved QML parser
- Add support qt 6.4
### Fixes
- Fixed snap version of cqtdeployer
- Fixed deploy of windows apps
- Added support deploy apps that was buildet with Qt from system
## Detailed analysis of the most interesting changes.
### New build system
From now, you can build cqtdeployer from source easier
- just clone project
``` bash
git clone https://github.com/QuasarApp/CQtDeployer.git
git submodule update --init --recursive
cd CQtDeployer
```
- create temp build directory
``` bash
mkdir build
cd build
```
- run cmake
``` bash
cmake .. -DCMAKE_PREFIX_PATH=/path/to/qt/root/dir
```
- build cqtdeployer
``` bash
make -j8
```
- create installers and packages
``` bash
make deploy
```
Done.
### Note
if you want to change Qt, Just run cmake with override qt location.
```bash
cmake -DCMAKE_PREFIX_PATH=/path/to/qt/root/dir
# or
cmake -DCMAKE_PREFIX_PATH=~/Qt/6.4.3/gcc_64
```

@ -4,14 +4,13 @@ You can download the latest version of the application [here](https://github.com
### Installer
- [Download](https://github.com/QuasarApp/CQtDeployer/releases) CQtDeployer_X.X.X.X_Installer_Linux64.run or CQtDeployer_X.X.X.X_Installer_Win64.exe
- [Download](https://github.com/QuasarApp/CQtDeployer/releases) CQtDeployer*.run or CQtDeployer*.exe
#### Install without gui
##### Linux
``` bash
wget https://github.com/QuasarApp/CQtDeployer/releases/download/1.5.3/CQtDeployer_1.5.3.0_Installer_Linux64.run
chmod +x CQtDeployer_1.5.3.0_Installer_Linux64.run
./CQtDeployer_1.5.3.0_Installer_Linux64.run install
```
@ -19,14 +18,12 @@ chmod +x CQtDeployer_1.5.3.0_Installer_Linux64.run
##### Windows
``` bash
wget https://github.com/QuasarApp/CQtDeployer/releases/download/1.5.3/CQtDeployer_1.5.3.0_Installer_Win64.exe
CQtDeployer_1.5.3.0_Installer_Win64.exe install
```
### Deb
``` bash
wget https://github.com/QuasarApp/CQtDeployer/releases/download/1.5.3/CQtDeployer_1.5.3.0_Linux64.deb
sudo dpkg -i CQtDeployer_1.5.3.0_Linux64.deb
```
@ -61,30 +58,74 @@ sudo snap connect cqtdeployer:system-backup
## Build for Linux
- install qt and qt QtInstallFrameWork from [qt installer](https://www.qt.io/download-qt-installer?hsCtaTracking=9f6a2170-a938-42df-a8e2-a9f0b1d6cdce%7C6cb0de4f9bb77-7bb77-4bb77-4)
- git clone https://github.com/QuasarApp/CQtDeployer.git
- cd CQtDeployer
- git submodule update --init --recursive
- qmake -r
- Here you must definitely call the qmake that was loaded from the 1st item.
- Example: ~/Qt/5.15.0/gcc_64/bin/qmake -r
- make -j$(nproc)
- make deploy
- this command requires installed [cqtdeployer](https://github.com/QuasarApp/CQtDeployer/releases)
- ./Distro/CQtDeployerInstaller.run
- clone project
``` bash
git clone https://github.com/QuasarApp/CQtDeployer.git
git submodule update --init --recursive
cd CQtDeployer
```
- create temp build directory
``` bash
mkdir build
cd build
```
- run cmake
``` bash
cmake .. -DCMAKE_PREFIX_PATH=/path/to/qt/root/dir
```
- build cqtdeployer
``` bash
make -j8
```
- create installers and packages (requered installed cqtdeployer)
``` bash
make deploy
```
## Build for Windows (CMD)
- install qt and qt QtInstallFrameWork from [qt installer](https://www.qt.io/download-qt-installer?hsCtaTracking=9f6a2170-a938-42df-a8e2-a9f0b1d6cdce%7C6cb0de4f9bb77-7bb77-4bb77-4)
- git clone https://github.com/QuasarApp/CQtDeployer.git
- cd CQtDeployer
- git submodule update --init --recursive
- clone project
``` bash
git clone https://github.com/QuasarApp/CQtDeployer.git
git submodule update --init --recursive
cd CQtDeployer
```
- create temp build directory
``` bash
mkdir build
cd build
```
- SET PATH=C:/Qt/Tools/mingw810_64/bin;%PATH%
- It is important to set up the qt environment.
- qmake.exe -r
- Here you must definitely call the qmake that was loaded from the 1st item.
- Example: C:/Qt/5.15.0/mingw81_64/bin/qmake.exe -r
- migw32-make -j8
- migw32-make deploy
- this command requires installed [cqtdeployer](https://github.com/QuasarApp/CQtDeployer/releases)
- ./Distro/CQtDeployerInstaller.exe
- run cmake
``` bash
cmake .. -DCMAKE_PREFIX_PATH=C:/path/to/qt/root/dir
```
- build cqtdeployer
``` bash
migw32-make -j8
```
- create installers and packages (requered installed cqtdeployer)
``` bash
migw32-make deploy
```

@ -7,11 +7,11 @@ Compare Features of Distributions of the CQtDeployer
| Feature name | Classic linux version (Installer) | Snap Version | Windows version |
|---|---|---|----|
| Automatic updates | NO | YES | NO |
| Online updates | YES | YES | YES |
| Online updates | NO | YES | NO |
| Deploy system libraries | YES | YES | YES |
| Create installers | YES | YES | YES |
| Create archives | YES | YES | YES |
| Search of libraries and cmake from environment | YES | NO | YES |
| Search of libraries and cmake from environment | YES | YES | YES |
| Search of the qmake from a RPATH | YES | YES | NO |
| Support of the 'strip' command | YES | NO | NO |
| Support work with the qmake from a system repository of OS| YES| NO| NO |
| Support of the 'strip' command | YES | YES | NO |
| Support work with the qmake from a system repository of OS| YES| YES| NO |

@ -92,8 +92,10 @@ configure_file_in(${CURRENT_PROJECT} "${CMAKE_CURRENT_SOURCE_DIR}/Deploy/QIFWTem
addDeployFromCustomFile(${CURRENT_PROJECT} "${CMAKE_CURRENT_SOURCE_DIR}/Deploy/CQtDeployer.json")
set(QIFW_PLATFORM linux)
set(INSTALLER_SUFIX run)
if (WIN32)
set(QIFW_PLATFORM windows)
set(INSTALLER_SUFIX exe)
endif()
ADD_CUSTOM_TARGET(

@ -73,7 +73,7 @@
"deploySystem": false,
"deb": false,
"qif": "./QIFWTemplate",
"qifOut": "CQtDeployer_@CQT_DEPLOYER_VERSION@_@CMAKE_SYSTEM_NAME@_@CMAKE_SYSTEM_PROCESSOR@",
"qifOut": "CQtDeployer_@CQT_DEPLOYER_VERSION@_@CMAKE_SYSTEM_NAME@_@CMAKE_SYSTEM_PROCESSOR@.@INSTALLER_SUFIX@",
"zip": false,
"ignoreEnv": [
"@CMAKE_SOURCE_DIR@/Distro"