Skip to content

Commit

Permalink
bundle qt5ct in Linux for a native look
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok committed Mar 6, 2019
1 parent bda9bf5 commit e534eec
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .travis_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,25 @@ if [ -z ${TRAVIS_COMMIT+x} ]; then
exit 1
fi

# Install qt5ct for a native look
sudo add-apt-repository ppa:hda-me/qt5ct -y

# Install qt5.9
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
sudo add-apt-repository ppa:beineri/opt-qt597-trusty -y
sudo apt-get update -qq
sudo apt-get -y install qt59base qt59webengine qt59webchannel qt59svg qt59location qt59tools qt59translations
source /opt/qt*/bin/qt*-env.sh

# Install qt5ct for a native look
sudo apt-get -y install qt5ct

tree /usr/lib/x86_64-linux-gnu/qt5/plugins

sudo cp -r -n /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes /opt/qt*/plugins/

tree /opt/qt*/plugins/

# Compile newer version fcitx-qt5
sudo apt-get -y install fcitx-libs-dev libgl1-mesa-dev bison
sudo apt-get -y install cmake
Expand Down Expand Up @@ -76,13 +88,13 @@ cp vnote-utils.git/linuxdeployqt-continuous-x86_64.AppImage ./linuxdeployqt-cont
# wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt*.AppImage
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
./linuxdeployqt*.AppImage ./dist/usr/share/applications/*.desktop -bundle-non-qt-libs -exclude-libs=libnss3,libnssutil3
./linuxdeployqt*.AppImage ./dist/usr/share/applications/*.desktop -bundle-non-qt-libs -exclude-libs=libnss3,libnssutil3 -extra-plugins=platformthemes/libqt5ct.so

# Copy translations
cp /opt/qt59/translations/*_zh_CN.qm ./dist/usr/translations/

# Package it for the second time.
./linuxdeployqt*.AppImage ./dist/usr/share/applications/*.desktop -appimage -exclude-libs=libnss3,libnssutil3
./linuxdeployqt*.AppImage ./dist/usr/share/applications/*.desktop -appimage -exclude-libs=libnss3,libnssutil3 -extra-plugins=platformthemes/libqt5ct.so

tree dist/

Expand Down

0 comments on commit e534eec

Please sign in to comment.