Skip to content
Snippets Groups Projects
Commit ca80fb24 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Prettify macOS installer with dmgbuild

parent 4a7b62e8
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ if [ $TRAVIS_OS_NAME == osx ]; then
brew update
brew install qt5 lmdb clang-format ninja
pip install dmgbuild
export CMAKE_PREFIX_PATH=/usr/local/opt/qt5
fi
......
......@@ -7,7 +7,11 @@ TAG=`git tag -l --points-at HEAD`
# Add Qt binaries to path
PATH=/usr/local/opt/qt/bin/:${PATH}
sudo macdeployqt build/nheko.app -dmg
pushd build
sudo macdeployqt nheko.app -dmg
user=$(id -nu)
sudo chown ${user} build/nheko.dmg
mv build/nheko.dmg .
sudo chown ${user} nheko.dmg
mv nheko.dmg ..
popd
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
{
"background": "builtin-arrow",
"compression-level": 9,
"contents": [
{
"path": "/Applications/Nheko.app",
"type": "file",
"x": 140,
"y": 120
},
{
"path": "/Applications",
"type": "link",
"x": 500,
"y": 120
}
],
"format": "UDZO",
"title": "Nheko",
"window": {
"position": {
"x": 100,
"y": 100
},
"size": {
"height": 280,
"width": 640
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment