mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
chore: change qt version
This commit is contained in:
@@ -9,8 +9,33 @@ mkdir -p $DEST
|
||||
#### copy binary ####
|
||||
cp $BUILD/nekoray $DEST
|
||||
|
||||
#### Download: prebuilt runtime ####
|
||||
curl -Lso usr.zip https://github.com/MatsuriDayo/nekoray_qt_runtime/releases/download/20220503/20220705-5.15.2-linux64.zip
|
||||
unzip usr.zip
|
||||
rm usr.zip
|
||||
#### copy so ####
|
||||
USR_LIB=/usr/lib/x86_64-linux-gnu
|
||||
mkdir usr
|
||||
pushd usr
|
||||
mkdir lib
|
||||
pushd lib
|
||||
cp $USR_LIB/libQt5Core.so.5 .
|
||||
cp $USR_LIB/libQt5DBus.so.5 .
|
||||
cp $USR_LIB/libQt5Gui.so.5 .
|
||||
cp $USR_LIB/libQt5Network.so.5 .
|
||||
cp $USR_LIB/libQt5Svg.so.5 .
|
||||
cp $USR_LIB/libQt5Widgets.so.5 .
|
||||
cp $USR_LIB/libQt5X11Extras.so.5 .
|
||||
cp $USR_LIB/libQt5XcbQpa.so.5 .
|
||||
cp $USR_LIB/libxcb-util.so.1 .
|
||||
cp $USR_LIB/libicuuc.so.?? .
|
||||
cp $USR_LIB/libicui18n.so.?? .
|
||||
cp $USR_LIB/libicudata.so.?? .
|
||||
popd
|
||||
mkdir plugins
|
||||
pushd plugins
|
||||
cp -r $USR_LIB/qt5/plugins/bearer .
|
||||
cp -r $USR_LIB/qt5/plugins/iconengines .
|
||||
cp -r $USR_LIB/qt5/plugins/imageformats .
|
||||
cp -r $USR_LIB/qt5/plugins/platforminputcontexts .
|
||||
cp -r $USR_LIB/qt5/plugins/platforms .
|
||||
cp -r $USR_LIB/qt5/plugins/xcbglintegrations .
|
||||
popd
|
||||
popd
|
||||
mv usr $DEST
|
||||
|
||||
@@ -12,8 +12,6 @@ cp $BUILD/nekoray.exe $DEST
|
||||
#### deploy qt & DLL runtime ####
|
||||
pushd $DEST
|
||||
windeployqt nekoray.exe --no-compiler-runtime --no-system-d3d-compiler --no-opengl-sw --verbose 2
|
||||
curl -LSsO https://github.com/MatsuriDayo/nekoray_qt_runtime/releases/download/20220503/libcrypto-1_1-x64.dll
|
||||
curl -LSsO https://github.com/MatsuriDayo/nekoray_qt_runtime/releases/download/20220503/libssl-1_1-x64.dll
|
||||
rm -rf translations
|
||||
popd
|
||||
|
||||
|
||||
8
libs/env_qtsdk.sh
Normal file
8
libs/env_qtsdk.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
echo "Setting Qt Sdk Dir to" "$1"
|
||||
export Qt5_DIR="$1"
|
||||
export Qt6_DIR=$Qt5_DIR
|
||||
export PATH=$PATH:$Qt5_DIR/bin
|
||||
export LD_LIBRARY_PATH=$Qt5_DIR/lib
|
||||
export PKG_CONFIG_PATH=$Qt5_DIR/lib/pkgconfig
|
||||
export QT_PLUGIN_PATH=$Qt5_DIR/plugins
|
||||
export QML2_IMPORT_PATH=$Qt5_DIR/lib/qml
|
||||
Reference in New Issue
Block a user