mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-05 12:36:38 -07:00
Add script for local macOS distribution
This commit is contained in:
parent
d4a0603bf2
commit
89368f63c9
2 changed files with 20 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -29,3 +29,5 @@ compile_commands.json
|
|||
chiaki.conf
|
||||
/appimage
|
||||
.cache/
|
||||
/*.app
|
||||
/*.dmg
|
||||
|
|
18
scripts/macos-dist-local.sh
Executable file
18
scripts/macos-dist-local.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Build Chiaki for macOS distribution using dependencies from MacPorts and custom ffmpeg
|
||||
|
||||
set -xe
|
||||
cd $(dirname "${BASH_SOURCE[0]}")/..
|
||||
scripts/build-ffmpeg.sh
|
||||
export CMAKE_PREFIX_PATH="`pwd`/ffmpeg-prefix"
|
||||
scripts/build-common.sh
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue