TODO netlogon_user_flags_ntlmv2_enabled
[wireshark-sm.git] / packaging / macosx / wireshark-dsym.dmgbuild.in
blob99516a0af618cf6ab8eaeaa355d0fa1b0d76034a
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 import os.path
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)
14 # by doing e.g.
16 #   dmgbuild -s settings.py -D app=/path/to/My.app "My Application" MyApp.dmg
18 # .. Useful stuff ..............................................................
20 ws_version = '@PROJECT_VERSION@'
21 ws_volname = 'Wireshark Debugging Symbols' + ws_version
22 ws_srcdir = '@CMAKE_SOURCE_DIR@'
23 ws_bindir = '@CMAKE_BINARY_DIR@'
24 ws_app_dsym = 'Wireshark.dSYM'
25 ws_readme_dsym = 'Debugging symbols installation.html'
27 # .. Basics ....................................................................
29 # Uncomment to override the output filename
30 # filename = ws_volname + ' Intel 64.dmg'
32 # Uncomment to override the output volume name
33 # volume_name = 'Wireshark ' + ws_version
35 # From the hdiutil man page:
36 # UDZO - UDIF zlib-compressed image
37 # UDBZ - UDIF bzip2-compressed image (Mac OS X 10.4+ only)
38 # ULFO - UDIF lzfse-compressed image (OS X 10.11+ only)
39 # ULMO - UDIF lzma-compressed image (macOS 10.15+ only)
40 # Volume format (see hdiutil create -help)
42 # dSYMs are huge, so compress them with UDBZ despite what
43 # https://developer.apple.com/forums/thread/128166
44 # currently (Jan 2023) says.
45 format = defines.get('format', 'UDBZ')
47 # Compression level (if relevant)
48 compression_level = 9
50 # Volume size
51 size = None
53 # Files to include
54 files = [
55     os.path.join(ws_bindir, 'run', ws_app_dsym),
56     os.path.join(ws_bindir, 'packaging', 'macosx', 'wireshark', ws_readme_dsym),
59 # Symlinks to create
60 symlinks = {
61     'Applications': '/Applications',
62     }
64 # Volume icon
66 # You can either define icon, in which case that icon file will be copied to the
67 # image, *or* you can define badge_icon, in which case the icon file you specify
68 # will be used to badge the system's Removable Disk icon
70 badge_icon = os.path.join(ws_srcdir, 'packaging', 'macosx', 'wsiconvol.icns')
71 #badge_icon = icon_from_app(application)
73 # Where to put the icons
74 icon_locations = {
75     ws_app_dsym:                     ( 80,  64),
76     'Applications':             (240,  64),
77     ws_readme_dsym:                  (160, 170),
78     }
80 # .. Window configuration ......................................................
82 # Background
84 # This is a STRING containing any of the following:
86 #    #3344ff          - web-style RGB color
87 #    #34f             - web-style RGB color, short form (#34f == #3344ff)
88 #    rgb(1,0,0)       - RGB color, each value is between 0 and 1
89 #    hsl(120,1,.5)    - HSL (hue saturation lightness) color
90 #    hwb(300,0,0)     - HWB (hue whiteness blackness) color
91 #    cmyk(0,1,0,0)    - CMYK color
92 #    goldenrod        - X11/SVG named color
93 #    builtin-arrow    - A simple built-in background with a blue arrow
94 #    /foo/bar/baz.png - The path to an image file
96 # The hue component in hsl() and hwb() may include a unit; it defaults to
97 # degrees ('deg'), but also supports radians ('rad') and gradians ('grad'
98 # or 'gon').
100 # Other color components may be expressed either in the range 0 to 1, or
101 # as percentages (e.g. 60% is equivalent to 0.6).
102 background = os.path.join(ws_srcdir, 'packaging', 'macosx', 'dmg_background.png')
104 show_status_bar = False
105 show_tab_view = False
106 show_toolbar = False
107 show_pathbar = False
108 show_sidebar = False
109 sidebar_width = 180
111 # Window position in ((x, y), (w, h)) format
112 window_rect = ((600, 200), (350, 325))
114 # Select the default view; must be one of
116 #    'icon-view'
117 #    'list-view'
118 #    'column-view'
119 #    'coverflow'
121 default_view = 'icon-view'
123 # General view configuration
124 show_icon_preview = False
126 # Set these to True to force inclusion of icon/list view settings (otherwise
127 # we only include settings for the default view)
128 include_icon_view_settings = 'auto'
129 include_list_view_settings = 'auto'
131 # .. Icon view configuration ...................................................
133 arrange_by = None
134 grid_offset = (0, 0)
135 #grid_spacing = 100
136 scroll_position = (0, 0)
137 #label_pos = 'bottom' # or 'right'
138 text_size = 12
139 icon_size = 72