1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
7 # Example settings file for dmgbuild
9 # Adapted from https://raw.githubusercontent.com/al45tair/dmgbuild/master/examples/settings.py
11 # Use like this: dmgbuild -s settings.py "Test Volume" test.dmg
13 # You can actually use this file for your own application (not just TextEdit)
16 # dmgbuild -s settings.py -D app=/path/to/My.app "My Application" MyApp.dmg
18 # .. Useful stuff ..............................................................
20 ss_version = '@LOG_PROJECT_VERSION@'
21 ss_volname = 'Stratoshark ' + ss_version
22 ss_srcdir = '@CMAKE_SOURCE_DIR@'
23 ss_bindir = '@CMAKE_BINARY_DIR@'
24 ss_app = 'Stratoshark.app'
25 ss_readme = 'Read me first.html'
26 ss_install_chmodbpf = 'Install ChmodBPF.pkg'
27 ss_uninstall_chmodbpf = 'Uninstall ChmodBPF.pkg'
28 ss_install_path_helper = 'Add Stratoshark to the system path.pkg'
29 ss_uninstall_path_helper = 'Remove Stratoshark from the system path.pkg'
31 # .. Basics ....................................................................
33 # Uncomment to override the output filename
34 # filename = ss_volname + ' Intel 64.dmg'
36 # Uncomment to override the output volume name
37 # volume_name = 'Stratoshark ' + ss_version
39 # From the hdiutil man page:
40 # UDZO - UDIF zlib-compressed image
41 # UDBZ - UDIF bzip2-compressed image (Mac OS X 10.4+ only)
42 # ULFO - UDIF lzfse-compressed image (OS X 10.11+ only)
43 # ULMO - UDIF lzma-compressed image (macOS 10.15+ only)
44 # Volume format (see hdiutil create -help)
46 # https://developer.apple.com/forums/thread/128166
47 # currently (Jan 2023) says to use UDZO
48 format = defines.get('format', 'UDZO')
50 # Compression level (if relevant)
58 os.path.join(ss_bindir, 'run', ss_app),
59 os.path.join(ss_bindir, 'packaging', 'macosx', 'stratoshark', ss_readme),
64 'Applications': '/Applications',
69 # You can either define icon, in which case that icon file will be copied to the
70 # image, *or* you can define badge_icon, in which case the icon file you specify
71 # will be used to badge the system's Removable Disk icon
73 badge_icon = os.path.join(ss_srcdir, 'packaging', 'macosx', 'ssiconvol.icns')
74 #badge_icon = icon_from_app(application)
76 # Where to put the icons
79 'Applications': (240, 64),
80 ss_readme: (160, 170),
81 ss_install_chmodbpf: ( 80, 276),
82 ss_uninstall_chmodbpf: (250, 276),
83 ss_install_path_helper: ( 80, 382),
84 ss_uninstall_path_helper: (250, 382),
87 # .. Window configuration ......................................................
91 # This is a STRING containing any of the following:
93 # #3344ff - web-style RGB color
94 # #34f - web-style RGB color, short form (#34f == #3344ff)
95 # rgb(1,0,0) - RGB color, each value is between 0 and 1
96 # hsl(120,1,.5) - HSL (hue saturation lightness) color
97 # hwb(300,0,0) - HWB (hue whiteness blackness) color
98 # cmyk(0,1,0,0) - CMYK color
99 # goldenrod - X11/SVG named color
100 # builtin-arrow - A simple built-in background with a blue arrow
101 # /foo/bar/baz.png - The path to an image file
103 # The hue component in hsl() and hwb() may include a unit; it defaults to
104 # degrees ('deg'), but also supports radians ('rad') and gradians ('grad'
107 # Other color components may be expressed either in the range 0 to 1, or
108 # as percentages (e.g. 60% is equivalent to 0.6).
109 background = os.path.join(ss_srcdir, 'packaging', 'macosx', 'dmg_background.png')
111 show_status_bar = False
112 show_tab_view = False
118 # Window position in ((x, y), (w, h)) format
119 window_rect = ((600, 200), (350, 525))
121 # Select the default view; must be one of
128 default_view = 'icon-view'
130 # General view configuration
131 show_icon_preview = False
133 # Set these to True to force inclusion of icon/list view settings (otherwise
134 # we only include settings for the default view)
135 include_icon_view_settings = 'auto'
136 include_list_view_settings = 'auto'
138 # .. Icon view configuration ...................................................
143 scroll_position = (0, 0)
144 #label_pos = 'bottom' # or 'right'