2020-02-27 10:50:11 +03:00
|
|
|
#!/bin/sh
|
2021-06-10 11:34:25 +03:00
|
|
|
|
|
|
|
# This is default bat run script of The CQtDeployer project.
|
|
|
|
# This file contains key word that will replaced after deploy project.
|
|
|
|
#
|
|
|
|
# ####################################################################
|
|
|
|
#
|
2022-01-20 12:05:47 +03:00
|
|
|
# All variables has the CQT_ prefix
|
2023-01-06 18:58:13 +01:00
|
|
|
# BIN_PATH - are relative path to executable files of a deployed distribution.
|
|
|
|
# LIB_PATH - are relative path to libraries of a deployed distribution.
|
|
|
|
# QML_PATH - are relative path to qml libraries of a deployed distribution.
|
|
|
|
# PLUGIN_PATH - are relative path to qt plugins of a deployed distribution.
|
|
|
|
# BIN_PATH - are relative path to targets of a deployed distribution.
|
2021-06-10 11:34:25 +03:00
|
|
|
|
2023-01-06 18:58:13 +01:00
|
|
|
# SYSTEM_LIB_PATH - are relative path to system libraries of a deployed distribution.
|
2021-06-10 11:34:25 +03:00
|
|
|
# BASE_NAME - are base name of the executable that will be launched after run this script.
|
|
|
|
# CUSTOM_SCRIPT_BLOCK - This is code from the customScript option
|
2023-01-06 18:58:13 +01:00
|
|
|
# RUN_COMMAND - This is command for run application. Required BASE_DIR variable.
|
2021-06-10 11:34:25 +03:00
|
|
|
#
|
|
|
|
# ####################################################################
|
|
|
|
|
2020-02-27 10:50:11 +03:00
|
|
|
BASE_DIR=$(dirname "$(readlink -f "$0")")
|
2022-01-20 12:05:47 +03:00
|
|
|
export PATH="$BASE_DIR"/bin/:$PATH
|
2021-06-10 11:34:25 +03:00
|
|
|
export LD_LIBRARY_PATH="$BASE_DIR"/lib/:"$BASE_DIR":$LD_LIBRARY_PATH
|
2020-02-27 10:50:11 +03:00
|
|
|
export QML_IMPORT_PATH="$BASE_DIR"/q/and/q/:$QML_IMPORT_PATH
|
|
|
|
export QML2_IMPORT_PATH="$BASE_DIR"/q/and/q/:$QML2_IMPORT_PATH
|
|
|
|
export QT_PLUGIN_PATH="$BASE_DIR"/plugins/:$QT_PLUGIN_PATH
|
2021-06-10 11:34:25 +03:00
|
|
|
export QTWEBENGINEPROCESS_PATH="$BASE_DIR"/bin//QtWebEngineProcess
|
2020-02-27 10:50:11 +03:00
|
|
|
export QTDIR="$BASE_DIR"
|
2021-01-19 10:52:32 +03:00
|
|
|
export CQT_PKG_ROOT="$BASE_DIR"
|
2021-02-05 11:16:22 +03:00
|
|
|
export CQT_RUN_FILE="$BASE_DIR/TestQMLWidgets.sh"
|
2020-02-27 10:50:11 +03:00
|
|
|
|
2021-06-10 11:34:25 +03:00
|
|
|
export QT_QPA_PLATFORM_PLUGIN_PATH="$BASE_DIR"/plugins//platforms:$QT_QPA_PLATFORM_PLUGIN_PATH
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"$BASE_DIR/bin/TestQMLWidgets" "$@"
|