| 1 | # -*- coding: utf-8 -*-
|
|---|
| 2 | import os.path
|
|---|
| 3 |
|
|---|
| 4 | #
|
|---|
| 5 | # 0 A.D. settings file for dmgbuild
|
|---|
| 6 | #
|
|---|
| 7 |
|
|---|
| 8 | # Use like this:
|
|---|
| 9 | # dmgbuild -s settings.py -D app=/path/to/My.app -D background=/path/to/background.png "My Application" MyApp.dmg
|
|---|
| 10 |
|
|---|
| 11 | application = defines.get('app')
|
|---|
| 12 |
|
|---|
| 13 | # .. Basics ....................................................................
|
|---|
| 14 |
|
|---|
| 15 | # Volume format (see hdiutil create -help)
|
|---|
| 16 | format = defines.get('format', 'UDBZ')
|
|---|
| 17 |
|
|---|
| 18 | # Volume size
|
|---|
| 19 | size = defines.get('size', '4G')
|
|---|
| 20 |
|
|---|
| 21 | # Files to include
|
|---|
| 22 | files = [ application ]
|
|---|
| 23 |
|
|---|
| 24 | # Symlinks to create
|
|---|
| 25 | symlinks = { 'Applications': '/Applications' }
|
|---|
| 26 |
|
|---|
| 27 | # Volume icon
|
|---|
| 28 | #
|
|---|
| 29 | # You can either define icon, in which case that icon file will be copied to the
|
|---|
| 30 | # image, *or* you can define badge_icon, in which case the icon file you specify
|
|---|
| 31 | # will be used to badge the system's Removable Disk icon
|
|---|
| 32 | #
|
|---|
| 33 | badge_icon = defines.get('icon')
|
|---|
| 34 |
|
|---|
| 35 | # Where to put the icons
|
|---|
| 36 | icon_locations = {
|
|---|
| 37 | os.path.basename(application): (125, 170),
|
|---|
| 38 | 'Applications': (475, 170)
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | # .. Window configuration ......................................................
|
|---|
| 42 |
|
|---|
| 43 | # Background
|
|---|
| 44 | background = defines.get('background')
|
|---|
| 45 |
|
|---|
| 46 | show_status_bar = False
|
|---|
| 47 | show_tab_view = False
|
|---|
| 48 | show_toolbar = False
|
|---|
| 49 | show_pathbar = False
|
|---|
| 50 | show_sidebar = False
|
|---|
| 51 | sidebar_width = 0
|
|---|
| 52 |
|
|---|
| 53 | # Window position in ((x, y), (w, h)) format
|
|---|
| 54 | window_rect = ((0, 0), (600, 393))
|
|---|
| 55 |
|
|---|
| 56 | # Select the default view; must be one of
|
|---|
| 57 | #
|
|---|
| 58 | # 'icon-view'
|
|---|
| 59 | # 'list-view'
|
|---|
| 60 | # 'column-view'
|
|---|
| 61 | # 'coverflow'
|
|---|
| 62 | #
|
|---|
| 63 | default_view = 'icon-view'
|
|---|
| 64 |
|
|---|
| 65 | # General view configuration
|
|---|
| 66 | show_icon_preview = False
|
|---|
| 67 |
|
|---|
| 68 | # Set these to True to force inclusion of icon/list view settings (otherwise
|
|---|
| 69 | # we only include settings for the default view)
|
|---|
| 70 | include_icon_view_settings = 'auto'
|
|---|
| 71 | include_list_view_settings = 'auto'
|
|---|
| 72 |
|
|---|
| 73 | # .. Icon view configuration ...................................................
|
|---|
| 74 |
|
|---|
| 75 | arrange_by = None
|
|---|
| 76 | grid_offset = (0, 0)
|
|---|
| 77 | grid_spacing = 100
|
|---|
| 78 | scroll_position = (0, 0)
|
|---|
| 79 | label_pos = 'bottom' # or 'right'
|
|---|
| 80 | text_size = 12
|
|---|
| 81 | icon_size = 90
|
|---|
| 82 |
|
|---|
| 83 | # .. List view configuration ...................................................
|
|---|
| 84 |
|
|---|
| 85 | # Column names are as follows:
|
|---|
| 86 | #
|
|---|
| 87 | # name
|
|---|
| 88 | # date-modified
|
|---|
| 89 | # date-created
|
|---|
| 90 | # date-added
|
|---|
| 91 | # date-last-opened
|
|---|
| 92 | # size
|
|---|
| 93 | # kind
|
|---|
| 94 | # label
|
|---|
| 95 | # version
|
|---|
| 96 | # comments
|
|---|
| 97 | #
|
|---|
| 98 | list_icon_size = 16
|
|---|
| 99 | list_text_size = 12
|
|---|
| 100 | list_scroll_position = (0, 0)
|
|---|
| 101 | list_sort_by = 'name'
|
|---|
| 102 | list_use_relative_dates = True
|
|---|
| 103 | list_calculate_all_sizes = False,
|
|---|
| 104 | list_columns = ('name', 'date-modified', 'size', 'kind', 'date-added')
|
|---|
| 105 | list_column_widths = {
|
|---|
| 106 | 'name': 300,
|
|---|
| 107 | 'date-modified': 181,
|
|---|
| 108 | 'date-created': 181,
|
|---|
| 109 | 'date-added': 181,
|
|---|
| 110 | 'date-last-opened': 181,
|
|---|
| 111 | 'size': 97,
|
|---|
| 112 | 'kind': 115,
|
|---|
| 113 | 'label': 100,
|
|---|
| 114 | 'version': 75,
|
|---|
| 115 | 'comments': 300,
|
|---|
| 116 | }
|
|---|
| 117 | list_column_sort_directions = {
|
|---|
| 118 | 'name': 'ascending',
|
|---|
| 119 | 'date-modified': 'descending',
|
|---|
| 120 | 'date-created': 'descending',
|
|---|
| 121 | 'date-added': 'descending',
|
|---|
| 122 | 'date-last-opened': 'descending',
|
|---|
| 123 | 'size': 'descending',
|
|---|
| 124 | 'kind': 'ascending',
|
|---|
| 125 | 'label': 'ascending',
|
|---|
| 126 | 'version': 'ascending',
|
|---|
| 127 | 'comments': 'ascending',
|
|---|
| 128 | }
|
|---|
| 129 |
|
|---|
| 130 | # .. License configuration .....................................................
|
|---|
| 131 |
|
|---|
| 132 | # TODO: Use licenses from the app bundle.
|
|---|