Copy QtWebProcess
into app bundle (in our case, SlateKit.app
):
mkdir -p SlateKit.app/Contents/libexec cp ~/Qt5.2.0/5.2.0/clang_64/libexec/QtWebProcess SlateKit.app/Contents/libexec/
Set QPA and plugin path:
cat > SlateKit.app/Contents/libexec/qt.conf << EOF [Paths] Plugins = ../../PlugIns Imports = ../../Resources/qml Qml2Imports = ../../Resources/qml EOF
Make the app bundle self-contained:
~/Qt5.2.0/5.2.0/clang_64/bin/macdeployqt SlateKit.app -qmldir=qml/ -executable=SlateKit.app/Contents/libexec/QtWebProcess -verbose=3 -dmg
Note there's a known bug of macdeployqt before Qt 5.1, here is a patched one.
沒有留言:
張貼留言