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")
|
||||
|
||||
+16
-2
@@ -5,8 +5,22 @@ if [ -d bin/chatterino.app ] && [ ! -d chatterino.app ]; then
|
||||
mv bin/chatterino.app chatterino.app
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
if [ -n "$_QT_DIR" ]; then
|
||||
export PATH="${_QT_DIR}/bin:$PATH"
|
||||
else
|
||||
echo "No Qt environment variable set, assuming system-installed Qt"
|
||||
fi
|
||||
|
||||
echo "Running MACDEPLOYQT"
|
||||
$Qt5_DIR/bin/macdeployqt chatterino.app
|
||||
macdeployqt chatterino.app
|
||||
echo "Creating python3 virtual environment"
|
||||
python3 -m venv venv
|
||||
echo "Entering python3 virtual environment"
|
||||
@@ -14,5 +28,5 @@ echo "Entering python3 virtual environment"
|
||||
echo "Installing dmgbuild"
|
||||
python3 -m pip install dmgbuild
|
||||
echo "Running dmgbuild.."
|
||||
dmgbuild --settings ./../.CI/dmg-settings.py -D app=./chatterino.app Chatterino2 chatterino-osx.dmg
|
||||
dmgbuild --settings ./../.CI/dmg-settings.py -D app=./chatterino.app Chatterino2 chatterino-osx-Qt-$1.dmg
|
||||
echo "Done!"
|
||||
|
||||
@@ -24,7 +24,12 @@ case "$ubuntu_release" in
|
||||
dependencies="libc6, libstdc++6, libqt5core5a, libqt5concurrent5, libqt5dbus5, libqt5gui5, libqt5network5, libqt5svg5, libqt5widgets5, qt5-image-formats-plugins, libboost-filesystem1.71.0"
|
||||
;;
|
||||
22.04)
|
||||
dependencies="libc6, libstdc++6, libqt5core5a, libqt5concurrent5, libqt5dbus5, libqt5gui5, libqt5network5, libqt5svg5, libqt5widgets5, qt5-image-formats-plugins, libboost-filesystem1.74.0"
|
||||
if [ -n "$Qt6_DIR" ]; then
|
||||
echo "Qt6_DIR set, assuming Qt6"
|
||||
dependencies="libc6, libstdc++6, libqt6core6, libqt6widgets6, libqt6network6, libqt6core5compat6, libqt6svg6, qt6-qpa-plugins, qt6-image-formats-plugins"
|
||||
else
|
||||
dependencies="libc6, libstdc++6, libqt5core5a, libqt5concurrent5, libqt5dbus5, libqt5gui5, libqt5network5, libqt5svg5, libqt5widgets5, qt5-image-formats-plugins, libboost-filesystem1.74.0"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported Ubuntu release $ubuntu_release"
|
||||
|
||||
Reference in New Issue
Block a user