2016-08-24 12:30:11 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-06-27 08:54:02 +02:00
|
|
|
ls -lha
|
2019-04-04 09:00:55 +02:00
|
|
|
|
2017-10-15 20:36:32 +02:00
|
|
|
# Setup Qt build environment.
|
2020-05-02 19:57:27 +02:00
|
|
|
source /opt/qt514/bin/qt514-env.sh
|
2016-08-24 12:30:11 +02:00
|
|
|
mkdir rssguard-build && cd rssguard-build
|
2017-10-15 20:36:32 +02:00
|
|
|
|
2017-11-14 08:57:22 +01:00
|
|
|
# Build application.
|
2019-04-04 08:38:59 +02:00
|
|
|
#lrelease -compress ../rssguard.pro
|
2017-10-15 21:04:29 +02:00
|
|
|
qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
|
2019-06-27 20:45:28 +02:00
|
|
|
make
|
2017-10-13 14:10:13 +02:00
|
|
|
make install
|
2019-06-27 20:14:15 +02:00
|
|
|
cd src/rssguard
|
2017-10-13 14:10:13 +02:00
|
|
|
|
2017-10-15 20:36:32 +02:00
|
|
|
# Obtain linuxdeployqt.
|
2017-10-13 14:37:03 +02:00
|
|
|
wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
|
|
|
|
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
|
|
|
|
|
2017-10-15 20:36:32 +02:00
|
|
|
# Create AppImage.
|
2017-10-13 14:12:35 +02:00
|
|
|
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
|
2017-10-22 19:08:07 +02:00
|
|
|
./linuxdeployqt-continuous-x86_64.AppImage "./AppDir/usr/share/applications/com.github.rssguard.desktop" -bundle-non-qt-libs -no-translations
|
2020-05-11 10:17:31 +02:00
|
|
|
|
|
|
|
if [ "$USE_WEBENGINE" = true ]; then
|
|
|
|
# Copy some NSS3 files to prevent WebEngine crashes.
|
|
|
|
cp /usr/lib/x86_64-linux-gnu/nss/* ./AppDir/usr/lib/ -v
|
|
|
|
fi
|
|
|
|
|
2017-10-22 19:08:07 +02:00
|
|
|
./linuxdeployqt-continuous-x86_64.AppImage "./AppDir/usr/share/applications/com.github.rssguard.desktop" -appimage -no-translations
|
2020-05-04 06:47:42 +02:00
|
|
|
|
|
|
|
# Rename AppImaage.
|
|
|
|
set -- R*.AppImage
|
|
|
|
|
|
|
|
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
|
|
|
|
|
|
|
imagename="$1"
|
2020-05-04 07:30:31 +02:00
|
|
|
git_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
2020-05-04 06:47:42 +02:00
|
|
|
git_revision=$(git rev-parse --short HEAD)
|
|
|
|
|
|
|
|
if [ "$USE_WEBENGINE" = true ]; then
|
|
|
|
imagenewname="rssguard-${git_tag}-${git_revision}-linux64.AppImage"
|
|
|
|
else
|
|
|
|
imagenewname="rssguard-${git_tag}-${git_revision}-nowebengine-linux64.AppImage"
|
|
|
|
fi
|
|
|
|
|
|
|
|
mv "$imagename" "$imagenewname"
|
|
|
|
|
2020-05-11 10:17:31 +02:00
|
|
|
ls
|