mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
bundle qt5ct in Linux for a native look
This commit is contained in:
parent
bda9bf51c1
commit
e534eec083
@ -8,6 +8,9 @@ if [ -z ${TRAVIS_COMMIT+x} ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install qt5ct for a native look
|
||||||
|
sudo add-apt-repository ppa:hda-me/qt5ct -y
|
||||||
|
|
||||||
# Install qt5.9
|
# Install qt5.9
|
||||||
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
|
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
|
||||||
sudo add-apt-repository ppa:beineri/opt-qt597-trusty -y
|
sudo add-apt-repository ppa:beineri/opt-qt597-trusty -y
|
||||||
@ -15,6 +18,15 @@ sudo apt-get update -qq
|
|||||||
sudo apt-get -y install qt59base qt59webengine qt59webchannel qt59svg qt59location qt59tools qt59translations
|
sudo apt-get -y install qt59base qt59webengine qt59webchannel qt59svg qt59location qt59tools qt59translations
|
||||||
source /opt/qt*/bin/qt*-env.sh
|
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
|
# Compile newer version fcitx-qt5
|
||||||
sudo apt-get -y install fcitx-libs-dev libgl1-mesa-dev bison
|
sudo apt-get -y install fcitx-libs-dev libgl1-mesa-dev bison
|
||||||
sudo apt-get -y install cmake
|
sudo apt-get -y install cmake
|
||||||
@ -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"
|
# wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
|
||||||
chmod a+x linuxdeployqt*.AppImage
|
chmod a+x linuxdeployqt*.AppImage
|
||||||
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
|
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
|
# Copy translations
|
||||||
cp /opt/qt59/translations/*_zh_CN.qm ./dist/usr/translations/
|
cp /opt/qt59/translations/*_zh_CN.qm ./dist/usr/translations/
|
||||||
|
|
||||||
# Package it for the second time.
|
# 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/
|
tree dist/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user