dmg-builder 21.1.3 → 21.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/vendor/dmgbuild/core.py +11 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dmg-builder",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.0",
|
|
4
4
|
"main": "out/dmgUtil.js",
|
|
5
5
|
"author": "Vladimir Krivosheev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"fs-extra": "^8.1.0",
|
|
17
17
|
"bluebird-lst": "^1.0.9",
|
|
18
|
-
"builder-util": "~21.
|
|
18
|
+
"builder-util": "~21.2.0",
|
|
19
19
|
"iconv-lite": "^0.5.0",
|
|
20
20
|
"js-yaml": "^3.13.1",
|
|
21
|
-
"app-builder-lib": "~21.
|
|
22
|
-
"sanitize-filename": "^1.6.
|
|
21
|
+
"app-builder-lib": "~21.2.0",
|
|
22
|
+
"sanitize-filename": "^1.6.2"
|
|
23
23
|
},
|
|
24
24
|
"typings": "./out/dmg.d.ts"
|
|
25
25
|
}
|
package/vendor/dmgbuild/core.py
CHANGED
|
@@ -40,19 +40,12 @@ def build_dmg():
|
|
|
40
40
|
options = {
|
|
41
41
|
'icon': None,
|
|
42
42
|
'badge_icon': None,
|
|
43
|
-
'show_status_bar': False,
|
|
44
|
-
'show_tab_view': False,
|
|
45
|
-
'show_toolbar': False,
|
|
46
|
-
'show_pathbar': False,
|
|
47
|
-
'show_sidebar': False,
|
|
48
43
|
'sidebar_width': 180,
|
|
49
44
|
'arrange_by': None,
|
|
50
45
|
'grid_offset': (0, 0),
|
|
51
46
|
'grid_spacing': 100.0,
|
|
52
47
|
'scroll_position': (0.0, 0.0),
|
|
53
48
|
'show_icon_preview': False,
|
|
54
|
-
'show_item_info': False,
|
|
55
|
-
'label_pos': 'bottom',
|
|
56
49
|
'text_size': os.environ['iconTextSize'],
|
|
57
50
|
'icon_size': os.environ['iconSize'],
|
|
58
51
|
'include_icon_view_settings': 'auto',
|
|
@@ -61,8 +54,6 @@ def build_dmg():
|
|
|
61
54
|
'list_text_size': 12.0,
|
|
62
55
|
'list_scroll_position': (0, 0),
|
|
63
56
|
'list_sort_by': 'name',
|
|
64
|
-
'list_use_relative_dates': True,
|
|
65
|
-
'list_calculate_all_sizes': False,
|
|
66
57
|
'list_columns': ('name', 'date-modified', 'size', 'kind', 'date-added'),
|
|
67
58
|
'list_column_widths': {
|
|
68
59
|
'name': 300,
|
|
@@ -87,20 +78,19 @@ def build_dmg():
|
|
|
87
78
|
'label': 'ascending',
|
|
88
79
|
'version': 'ascending',
|
|
89
80
|
'comments': 'ascending',
|
|
90
|
-
}
|
|
91
|
-
'default_view': 'icon-view',
|
|
81
|
+
}
|
|
92
82
|
}
|
|
93
83
|
|
|
94
84
|
# Set up the finder data
|
|
95
85
|
bwsp = {
|
|
96
|
-
'ShowStatusBar':
|
|
86
|
+
'ShowStatusBar': False,
|
|
97
87
|
'ContainerShowSidebar': False,
|
|
98
88
|
'PreviewPaneVisibility': False,
|
|
99
89
|
'SidebarWidth': options['sidebar_width'],
|
|
100
|
-
'ShowTabView':
|
|
101
|
-
'ShowToolbar':
|
|
102
|
-
'ShowPathbar':
|
|
103
|
-
'ShowSidebar':
|
|
90
|
+
'ShowTabView': False,
|
|
91
|
+
'ShowToolbar': False,
|
|
92
|
+
'ShowPathbar': False,
|
|
93
|
+
'ShowSidebar': False
|
|
104
94
|
}
|
|
105
95
|
|
|
106
96
|
window_x = os.environ.get('windowX')
|
|
@@ -133,8 +123,8 @@ def build_dmg():
|
|
|
133
123
|
'gridSpacing': float(options['grid_spacing']),
|
|
134
124
|
'arrangeBy': str(arrange_options.get(options['arrange_by'], 'none')),
|
|
135
125
|
'showIconPreview': options['show_icon_preview'] == True,
|
|
136
|
-
'showItemInfo':
|
|
137
|
-
'labelOnBottom':
|
|
126
|
+
'showItemInfo': False,
|
|
127
|
+
'labelOnBottom': True,
|
|
138
128
|
'textSize': float(options['text_size']),
|
|
139
129
|
'iconSize': float(options['icon_size']),
|
|
140
130
|
'scrollPositionX': float(options['scroll_position'][0]),
|
|
@@ -188,8 +178,8 @@ def build_dmg():
|
|
|
188
178
|
'showIconPreview': options['show_icon_preview'],
|
|
189
179
|
'scrollPositionX': options['list_scroll_position'][0],
|
|
190
180
|
'scrollPositionY': options['list_scroll_position'][1],
|
|
191
|
-
'useRelativeDates':
|
|
192
|
-
'calculateAllSizes':
|
|
181
|
+
'useRelativeDates': True,
|
|
182
|
+
'calculateAllSizes': False,
|
|
193
183
|
}
|
|
194
184
|
|
|
195
185
|
lsvp['columns'] = {}
|
|
@@ -225,7 +215,7 @@ def build_dmg():
|
|
|
225
215
|
|
|
226
216
|
n += 1
|
|
227
217
|
|
|
228
|
-
default_view =
|
|
218
|
+
default_view = 'icon-view'
|
|
229
219
|
views = {
|
|
230
220
|
'icon-view': b'icnv',
|
|
231
221
|
'column-view': b'clmv',
|