2019-12-28 14:54:03 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-03-28 16:58:51 +02:00
|
|
|
if [ -d bin/chatterino.app ] && [ ! -d chatterino.app ]; then
|
|
|
|
>&2 echo "Moving bin/chatterino.app down one directory"
|
|
|
|
mv bin/chatterino.app chatterino.app
|
|
|
|
fi
|
|
|
|
|
2023-04-15 13:25:51 +02:00
|
|
|
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
|
|
|
|
|
2019-12-28 14:54:03 +01:00
|
|
|
echo "Running MACDEPLOYQT"
|
2023-04-15 13:25:51 +02:00
|
|
|
macdeployqt chatterino.app
|
2020-03-01 14:15:43 +01:00
|
|
|
echo "Creating python3 virtual environment"
|
|
|
|
python3 -m venv venv
|
|
|
|
echo "Entering python3 virtual environment"
|
|
|
|
. venv/bin/activate
|
|
|
|
echo "Installing dmgbuild"
|
|
|
|
python3 -m pip install dmgbuild
|
|
|
|
echo "Running dmgbuild.."
|
2023-04-16 21:05:51 +02:00
|
|
|
dmgbuild --settings ./../.CI/dmg-settings.py -D app=./chatterino.app Chatterino2 chatterino-macos-Qt-$1.dmg
|
2020-03-01 14:15:43 +01:00
|
|
|
echo "Done!"
|