Add GitHub Actions support (#1463)
This commit is contained in:
+13
-3
@@ -1,10 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -f ./bin/chatterino ] || [ ! -x ./bin/chatterino ]; then
|
||||
echo "ERROR: No chatterino binary file found. This script must be run in the build folder, and chatterino must be built first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/qt512/lib/"
|
||||
export PATH="/opt/qt512/bin:$PATH"
|
||||
|
||||
script_path=$(readlink -f "$0")
|
||||
script_dir=$(dirname "$script_path")
|
||||
chatterino_dir=$(dirname "$script_dir")
|
||||
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qt512/lib/
|
||||
qmake_path=$(command -v qmake)
|
||||
|
||||
ldd ./bin/chatterino
|
||||
make INSTALL_ROOT=appdir -j"$(nproc)" install ; find appdir/
|
||||
@@ -26,10 +36,10 @@ fi
|
||||
-no-translations \
|
||||
-bundle-non-qt-libs \
|
||||
-unsupported-allow-new-glibc \
|
||||
-qmake=/opt/qt512/bin/qmake
|
||||
-qmake="$qmake_path"
|
||||
|
||||
rm -rf appdir/home
|
||||
rm appdir/AppRun
|
||||
rm -f appdir/AppRun
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
echo '#!/bin/sh
|
||||
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Running MACDEPLOYQT"
|
||||
/usr/local/opt/qt/bin/macdeployqt chatterino.app -dmg
|
||||
echo "Creating APP folder"
|
||||
mkdir app
|
||||
echo "Running hdiutil attach on the built DMG"
|
||||
hdiutil attach chatterino.dmg
|
||||
echo "Copying chatterino.app into the app folder"
|
||||
cp -r /Volumes/chatterino/chatterino.app app/
|
||||
echo "Creating DMG with create-dmg"
|
||||
create-dmg --volname Chatterino2 --volicon ../resources/chatterino.icns --icon-size 50 --app-drop-link 0 0 --format UDBZ chatterino-osx.dmg app/
|
||||
echo "DONE"
|
||||
Reference in New Issue
Block a user