MAC Build: fixed problem when you cannot open Cutter on MacOS due to missing Frameworks (#957)

This commit is contained in:
a1ext 2018-11-23 19:36:43 +03:00 committed by xarkes
parent 58fcd70fd2
commit 379567e80c
2 changed files with 1 additions and 11 deletions

View File

@ -72,9 +72,7 @@ script:
after_success:
- export CUTTER_VERSION=$(python ../scripts/get_version.py)
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
mv Cutter.app/Contents/MacOS/Cutter Cutter.app/Contents/MacOS/Cutter.bin &&
cp ../src/macos/Cutter Cutter.app/Contents/MacOS/Cutter && chmod +x Cutter.app/Contents/MacOS/Cutter &&
macdeployqt Cutter.app -executable=Cutter.app/Contents/MacOS/Cutter &&
macdeployqt Cutter.app -executable=Cutter.app/Contents/MacOS/Cutter -libpath="../Frameworks" &&
"$TRAVIS_BUILD_DIR/scripts/appbundle_embed_python.sh" "$PYTHON_FRAMEWORK_DIR/Python.framework" Cutter.app Cutter.app/Contents/MacOS/Cutter &&
mkdir -p Cutter.app/Contents/Resources/r2/share &&
cp -a /usr/local/share/radare2 Cutter.app/Contents/Resources/r2/share/ &&

View File

@ -1,8 +0,0 @@
#!/bin/bash
echo "Cutter Launch Script for macOS"
EXECDIR=$(dirname "$0")
export DYLD_LIBRARY_PATH="$EXECDIR/../Frameworks"
export DYLD_FRAMEWORK_PATH="$EXECDIR/../Frameworks"
"$EXECDIR/Cutter.bin" "$@"