tsMuxer/build_macos_native.sh

37 lines
706 B
Bash
Executable File

#!/usr/bin/env bash
set -x
set -e
export MACOSX_DEPLOYMENT_TARGET=10.13
brew install pkg-config
brew install freetype
brew install zlib
builddir=$PWD
mkdir build
pushd build
cmake -DCMAKE_BUILD_TYPE=Release -DTSMUXER_GUI=TRUE ..
make -j$(sysctl -n hw.logicalcpu)
pushd tsMuxerGUI
pushd tsMuxerGUI.app/Contents
defaults write "$PWD/Info.plist" NSPrincipalClass -string NSApplication
defaults write "$PWD/Info.plist" NSHighResolutionCapable -string True
plutil -convert xml1 Info.plist
popd
macdeployqt tsMuxerGUI.app
popd
mkdir bin
pushd bin
mv ../tsMuxer/tsmuxer tsMuxeR
mv ../tsMuxerGUI/tsMuxerGUI.app .
cp tsMuxeR tsMuxerGUI.app/Contents/MacOS/
zip -9 -r mac.zip tsMuxeR tsMuxerGUI.app
popd
popd