Fixed MacOS start script (#909)

This commit is contained in:
xarkes 2018-11-06 15:49:14 +01:00 committed by GitHub
parent b1e9db15fc
commit ab133706f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -72,6 +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 &&
"$TRAVIS_BUILD_DIR/scripts/appbundle_embed_python.sh" "$PYTHON_FRAMEWORK_DIR/Python.framework" Cutter.app Cutter.app/Contents/MacOS/Cutter &&

View File

@ -46,6 +46,7 @@ cd ..
On macOS you will also have to copy the launcher bash script:
```sh
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
```

View File

@ -5,4 +5,4 @@ echo "Cutter Launch Script for macOS"
EXECDIR=$(dirname "$0")
export DYLD_LIBRARY_PATH="$EXECDIR/../Frameworks"
export DYLD_FRAMEWORK_PATH="$EXECDIR/../Frameworks"
"$EXECDIR/Cutter" "$@"
"$EXECDIR/Cutter.bin" "$@"