89368f63c99d67cde8868c0269b66a1b0c507397 — Florian Märkl a month ago d4a0603 v2.2.0
Add script for local macOS distribution
2 files changed, 20 insertions(+), 0 deletions(-)

M .gitignore
A scripts/macos-dist-local.sh
M .gitignore => .gitignore +2 -0
@@ 29,3 29,5 @@ compile_commands.json

A scripts/macos-dist-local.sh => scripts/macos-dist-local.sh +18 -0
@@ 0,0 1,18 @@

# Build Chiaki for macOS distribution using dependencies from MacPorts and custom ffmpeg

set -xe
cd $(dirname "${BASH_SOURCE[0]}")/..
export CMAKE_PREFIX_PATH="`pwd`/ffmpeg-prefix"
cp -a build/gui/chiaki.app Chiaki.app
/opt/local/libexec/qt5/bin/macdeployqt Chiaki.app

# Remove all LC_RPATH load commands that have absolute paths of the build machine
RPATHS=$(otool -l Chiaki.app/Contents/MacOS/chiaki | grep -A 2 LC_RPATH | grep 'path /' | awk '{print $2}')
for p in ${RPATHS}; do install_name_tool -delete_rpath "$p" Chiaki.app/Contents/MacOS/chiaki; done

# This may warn because we already ran macdeployqt above
/opt/local/libexec/qt5/bin/macdeployqt Chiaki.app -dmg