#!/bin/bash echo "********** 开始拷贝Qt依赖库 **********" #导出临时环境变量 export PATH=/home/Apple/Programes/Qt/Qt5.15.2/5.15.2/gcc_64/bin:$PATH export LIB_PATH=/home/Apple/Programes/Qt/Qt5.15.2/5.15.2/gcc_64/lib:$LIB_PATH export PLUGIN_PATH=/home/Apple/Programes/Qt/Qt5.15.2/5.15.2/gcc_64/plugins:$PLUGIN_PATH export QML_PATH=/home/Apple/Programes/Qt/Qt5.15.2/5.15.2/gcc_64/qml:$QML_PATH echo $PATH echo $LIB_PATH echo $PLUGIN_PATH echo $QML_PATH #拷贝依赖库 linuxdeployqt $1 -appimage echo "********** 拷贝完成 **********"