Add dmg background image by Ravie

This commit is contained in:
def 2021-12-27 00:34:37 +01:00
parent fec20679f1
commit ccaca2c0f7
3 changed files with 9 additions and 7 deletions

View file

@ -2608,7 +2608,7 @@ if(CLIENT AND DMGBUILD)
COMMAND ${CMAKE_COMMAND} -E copy ${DMG_TMPDIR}/${TARGET_SERVER}.app/Contents/MacOS/${TARGET_SERVER} ${DMG_TMPDIR}/${TARGET_CLIENT}.app/Contents/MacOS/${TARGET_SERVER} COMMAND ${CMAKE_COMMAND} -E copy ${DMG_TMPDIR}/${TARGET_SERVER}.app/Contents/MacOS/${TARGET_SERVER} ${DMG_TMPDIR}/${TARGET_CLIENT}.app/Contents/MacOS/${TARGET_SERVER}
# DMG # DMG
COMMAND dmgbuild -s ${PROJECT_SOURCE_DIR}/other/dmgsettings.py -D client=${DMG_TMPDIR}/${TARGET_CLIENT}.app -D server=${DMG_TMPDIR}/${TARGET_SERVER}.app "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION}" ${CPACK_PACKAGE_FILE_NAME}.dmg COMMAND dmgbuild -s ${PROJECT_SOURCE_DIR}/other/dmgsettings.py -D client=${DMG_TMPDIR}/${TARGET_CLIENT}.app -D server=${DMG_TMPDIR}/${TARGET_SERVER}.app -D background=${PROJECT_SOURCE_DIR}/other/dmgbackground.png "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION}" ${CPACK_PACKAGE_FILE_NAME}.dmg
DEPENDS DEPENDS
${TARGET_CLIENT} ${TARGET_CLIENT}
@ -2620,6 +2620,8 @@ if(CLIENT AND DMGBUILD)
data data
other/bundle/client/PkgInfo other/bundle/client/PkgInfo
other/bundle/server/PkgInfo other/bundle/server/PkgInfo
other/dmgbackground.png
other/dmgsettings.py
other/icons/${TARGET_CLIENT}.icns other/icons/${TARGET_CLIENT}.icns
other/icons/${TARGET_SERVER}.icns other/icons/${TARGET_SERVER}.icns
) )

BIN
other/dmgbackground.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View file

@ -85,9 +85,9 @@ badge_icon_server = icon_from_app(application_server)
# Where to put the icons # Where to put the icons
icon_locations = { icon_locations = {
appname_client: (140, 120), appname_client: (128, 288),
appname_server: (240, 120), appname_server: (272, 288),
'Applications': (500, 120) 'Applications': (512, 288)
} }
# .. Window configuration ...................................................... # .. Window configuration ......................................................
@ -112,7 +112,7 @@ icon_locations = {
# #
# Other color components may be expressed either in the range 0 to 1, or # Other color components may be expressed either in the range 0 to 1, or
# as percentages (e.g. 60% is equivalent to 0.6). # as percentages (e.g. 60% is equivalent to 0.6).
background = 'builtin-arrow' background = defines.get('background', 'builtin-arrow')
show_status_bar = False show_status_bar = False
show_tab_view = False show_tab_view = False
@ -122,7 +122,7 @@ show_sidebar = False
sidebar_width = 180 sidebar_width = 180
# Window position in ((x, y), (w, h)) format # Window position in ((x, y), (w, h)) format
window_rect = ((100, 100), (640, 280)) window_rect = ((100, 100), (640, 444))
# Select the default view; must be one of # Select the default view; must be one of
# #
@ -149,7 +149,7 @@ grid_spacing = 100
scroll_position = (0, 0) scroll_position = (0, 0)
label_pos = 'bottom' # or 'right' label_pos = 'bottom' # or 'right'
text_size = 16 text_size = 16
icon_size = 128 icon_size = 118
# .. List view configuration ................................................... # .. List view configuration ...................................................