Add macOS, Windows, & Ubuntu 22.04 Qt6 builds (#4522)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
+13
-3
@@ -10,10 +10,20 @@ if [ ! -f ./bin/chatterino ] || [ ! -x ./bin/chatterino ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Qt5_DIR set to: ${Qt5_DIR}"
|
||||
if [ -n "$Qt5_DIR" ]; then
|
||||
echo "Using Qt DIR from Qt5_DIR: $Qt5_DIR"
|
||||
_QT_DIR="$Qt5_DIR"
|
||||
elif [ -n "$Qt6_DIR" ]; then
|
||||
echo "Using Qt DIR from Qt6_DIR: $Qt6_DIR"
|
||||
_QT_DIR="$Qt6_DIR"
|
||||
fi
|
||||
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${Qt5_DIR}/lib"
|
||||
export PATH="${Qt5_DIR}/bin:$PATH"
|
||||
if [ -n "$_QT_DIR" ]; then
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${_QT_DIR}/lib"
|
||||
export PATH="${_QT_DIR}/bin:$PATH"
|
||||
else
|
||||
echo "No Qt environment variable set, assuming system-installed Qt"
|
||||
fi
|
||||
|
||||
script_path=$(readlink -f "$0")
|
||||
script_dir=$(dirname "$script_path")
|
||||
|
||||
Reference in New Issue
Block a user