Prettifies the osx dmg
Adds a new background image, along with precisely located icon files. Also updates the icon files to have white backgrounds. The icon files were created using the 256px icon used in the ubuntu build.
This commit is contained in:
parent
ff31ddd2d5
commit
a6f08b9e0c
4 changed files with 14 additions and 5 deletions
Binary file not shown.
BIN
packaging/osx/lbry-osx-app/dmg_background.png
Normal file
BIN
packaging/osx/lbry-osx-app/dmg_background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
11
packaging/osx/lbry-osx-app/dmg_settings.py
Normal file
11
packaging/osx/lbry-osx-app/dmg_settings.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
badge_icon = 'app.icns'
|
||||||
|
icon_locations = {
|
||||||
|
'LBRY.app': (115, 164),
|
||||||
|
'Applications': (387, 164)
|
||||||
|
}
|
||||||
|
background='dmg_background.png'
|
||||||
|
default_view='icon-view'
|
||||||
|
symlinks = { 'Applications': '/Applications' }
|
||||||
|
window_rect=((200, 200), (500, 320))
|
||||||
|
files = [ 'LBRY.app' ]
|
||||||
|
icon_size=128
|
|
@ -9,10 +9,9 @@ ON_TRAVIS=false
|
||||||
|
|
||||||
rm -rf build dist LBRY.app
|
rm -rf build dist LBRY.app
|
||||||
|
|
||||||
pip install wheel
|
pip install wheel dmgbuild jsonrpc
|
||||||
# the default py2app (v0.9) has a bug that is fixed in the head of /metachris/py2app
|
# the default py2app (v0.9) has a bug that is fixed in the head of /metachris/py2app
|
||||||
pip install git+https://github.com/metachris/py2app
|
pip install git+https://github.com/metachris/py2app
|
||||||
pip install jsonrpc
|
|
||||||
|
|
||||||
mkdir -p $tmp
|
mkdir -p $tmp
|
||||||
cd $tmp
|
cd $tmp
|
||||||
|
@ -73,7 +72,7 @@ fi
|
||||||
# LBRYCRDD_URL="$(curl https://api.github.com/repos/lbryio/lbrycrd/releases/latest | grep 'browser_download_url' | grep osx | cut -d'"' -f4)"
|
# LBRYCRDD_URL="$(curl https://api.github.com/repos/lbryio/lbrycrd/releases/latest | grep 'browser_download_url' | grep osx | cut -d'"' -f4)"
|
||||||
LBRYCRDD_URL="https://github.com/lbryio/lbrycrd/releases/download/v0.3.15/lbrycrd-osx.zip"
|
LBRYCRDD_URL="https://github.com/lbryio/lbrycrd/releases/download/v0.3.15/lbrycrd-osx.zip"
|
||||||
wget "${LBRYCRDD_URL}" --output-document lbrycrd-osx.zip
|
wget "${LBRYCRDD_URL}" --output-document lbrycrd-osx.zip
|
||||||
unzip lbrycrd-osx.zip
|
unzip -o lbrycrd-osx.zip
|
||||||
python setup_app.py py2app --resources lbrycrdd
|
python setup_app.py py2app --resources lbrycrdd
|
||||||
|
|
||||||
chmod +x "${DEST}/dist/LBRY.app/Contents/Resources/lbrycrdd"
|
chmod +x "${DEST}/dist/LBRY.app/Contents/Resources/lbrycrdd"
|
||||||
|
@ -105,5 +104,4 @@ codesign -vvvv "${DEST}/dist/LBRY.app"
|
||||||
rm -rf $tmp
|
rm -rf $tmp
|
||||||
mv dist/LBRY.app LBRY.app
|
mv dist/LBRY.app LBRY.app
|
||||||
rm -rf dist "${NAME}.${VERSION}.dmg"
|
rm -rf dist "${NAME}.${VERSION}.dmg"
|
||||||
# TODO: make this pretty!
|
dmgbuild -s dmg_settings.py "LBRY" "${NAME}.${VERSION}.dmg"
|
||||||
hdiutil create "${NAME}.${VERSION}.dmg" -volname lbry -srcfolder LBRY.app
|
|
||||||
|
|
Loading…
Reference in a new issue