Skip to content

Commit

Permalink
OSX: Deploy package after fixing library paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Dec 1, 2016
1 parent c397515 commit 7f385f7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions utils/build-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,27 @@ root=$PWD
mkdir -p build
cd build

/usr/local/opt/qt5/bin/qmake CONFIG+=release ..
qt_bin="/usr/local/opt/qt5/bin"

"$qt_bin/qmake" CONFIG+=release ..
make
make package_plugins
make package_translations

# Create CopyQ.dmg
/usr/local/opt/qt5/bin/macdeployqt CopyQ.app -verbose=2 -dmg
# Create "CopyQ.app/"
"$qt_bin/macdeployqt" CopyQ.app -verbose=2 -always-overwrite

executable="CopyQ.app/Contents/MacOS/copyq"

# Fix dependencies
# Fix paths for included Qt libraries.
git clone https://github.com/iltommi/macdeployqtfix.git
python macdeployqtfix/macdeployqtfix.py "$executable" /usr/local/Cellar/qt5

# Test the deployed app
# Test the app before deployment.
"$executable" --help
"$executable" --version

# Create "CopyQ.dmg".
"$qt_bin/macdeployqt" CopyQ.app -verbose=2 -dmg -no-plugins

cd "$root"

0 comments on commit 7f385f7

Please sign in to comment.