mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
044dd8a616
* delet chatterino.pro * Update documentation * Update Github Actions config * Update Cirrus CI config * Attempt to fix Cirrus CI * Add changelog entry * Delete tools/update_filelist.py It was a QMake-only script? Maybe will need revert + change to CMake or something? * fix? * Fuck this linter * Attempt to clean up build.yml a little * Add cmaake to install list, remove step for qmake PATH * Change list entries to always use 1. Sneaky unrelated change * These are no longer tests! * FUCK YOU PRETTIER * Make BUILDING_ON_LINUX.md simpler * Get rid of Jenkins * Get rid of travis * Remove dupes * Remove appveyor * Remove qmake from conanfile * Try removing explicit qmake path * Nothing uses the qt style plugins installer anymore * Update manual linux building instructions * Update freebsd compilation instructions with a copy paste from the linux instructions * Remove unused docker files * Remove linux breakpad build script as it's unused * Update changelog entry phrasing * Lint build markdown files * Change top changelog entry to not be confused as a link * Skip QtCreator conan setup if conan is disabled This reduces the amount of warnings & errors Windows users get with QtCreator * lint building on linux file Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
60 lines
1.6 KiB
Bash
Executable file
60 lines
1.6 KiB
Bash
Executable file
#!/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")
|
|
|
|
|
|
echo "Running LDD on chatterino binary:"
|
|
ldd ./bin/chatterino
|
|
echo ""
|
|
|
|
echo "Running make install in the appdir"
|
|
make INSTALL_ROOT=appdir -j"$(nproc)" install ; find appdir/
|
|
echo ""
|
|
|
|
cp "$chatterino_dir"/resources/icon.png ./appdir/chatterino.png
|
|
|
|
linuxdeployqt_path="linuxdeployqt-6-x86_64.AppImage"
|
|
linuxdeployqt_url="https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage"
|
|
|
|
if [ ! -f "$linuxdeployqt_path" ]; then
|
|
wget -nv "$linuxdeployqt_url"
|
|
chmod a+x "$linuxdeployqt_path"
|
|
fi
|
|
if [ ! -f appimagetool-x86_64.AppImage ]; then
|
|
wget -nv "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
|
chmod a+x appimagetool-x86_64.AppImage
|
|
fi
|
|
echo "Run LinuxDeployQT"
|
|
./"$linuxdeployqt_path" \
|
|
appdir/usr/share/applications/*.desktop \
|
|
-no-translations \
|
|
-bundle-non-qt-libs \
|
|
-unsupported-allow-new-glibc
|
|
|
|
rm -rf appdir/home
|
|
rm -f appdir/AppRun
|
|
|
|
echo "Run AppImageTool"
|
|
|
|
# shellcheck disable=SC2016
|
|
echo '#!/bin/sh
|
|
here="$(dirname "$(readlink -f "${0}")")"
|
|
export QT_QPA_PLATFORM_PLUGIN_PATH="$here/usr/plugins"
|
|
cd "$here/usr"
|
|
exec "$here/usr/bin/chatterino" "$@"' > appdir/AppRun
|
|
chmod a+x appdir/AppRun
|
|
|
|
./appimagetool-x86_64.AppImage appdir
|