This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

source: ps/trunk/source/tools/dist/dmgbuild-settings.py

Last change on this file was 27965, checked in by Vladislav Belov, 13 months ago

Revert non-ASCII characters from source and configuration files introduced in rP27786.

Fixes #6846

Differential Revision: https://code.wildfiregames.com/D5185

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1# -*- coding: utf-8 -*-
2import 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
11application = defines.get('app')
12
13# .. Basics ....................................................................
14
15# Volume format (see hdiutil create -help)
16format = defines.get('format', 'UDBZ')
17
18# Volume size
19size = defines.get('size', '4G')
20
21# Files to include
22files = [ application ]
23
24# Symlinks to create
25symlinks = { '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#
33badge_icon = defines.get('icon')
34
35# Where to put the icons
36icon_locations = {
37 os.path.basename(application): (125, 170),
38 'Applications': (475, 170)
39}
40
41# .. Window configuration ......................................................
42
43# Background
44background = defines.get('background')
45
46show_status_bar = False
47show_tab_view = False
48show_toolbar = False
49show_pathbar = False
50show_sidebar = False
51sidebar_width = 0
52
53# Window position in ((x, y), (w, h)) format
54window_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#
63default_view = 'icon-view'
64
65# General view configuration
66show_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)
70include_icon_view_settings = 'auto'
71include_list_view_settings = 'auto'
72
73# .. Icon view configuration ...................................................
74
75arrange_by = None
76grid_offset = (0, 0)
77grid_spacing = 100
78scroll_position = (0, 0)
79label_pos = 'bottom' # or 'right'
80text_size = 12
81icon_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#
98list_icon_size = 16
99list_text_size = 12
100list_scroll_position = (0, 0)
101list_sort_by = 'name'
102list_use_relative_dates = True
103list_calculate_all_sizes = False,
104list_columns = ('name', 'date-modified', 'size', 'kind', 'date-added')
105list_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}
117list_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.
Note: See TracBrowser for help on using the repository browser.