Skip to content

Commit ce89240

Browse files
committed
Refine macOS DMG background and icon spacing
1 parent 39b112d commit ce89240

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

assets/dmg/background.png

-6.08 KB
Loading

packaging/macos/dmgbuild_settings.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ def _define(name, default=None):
99
app_name = os.path.basename(app_path)
1010
volume_name = _define("volume_name", app_name[:-4] if app_name.endswith(".app") else app_name)
1111
background = os.path.abspath(_define("background", "assets/dmg/background.png"))
12-
window_width = int(_define("window_width", "720"))
13-
window_height = int(_define("window_height", "460"))
14-
app_x = int(_define("app_x", "160"))
15-
app_y = int(_define("app_y", "220"))
16-
apps_x = int(_define("apps_x", "560"))
17-
apps_y = int(_define("apps_y", "220"))
12+
window_width = int(_define("window_width", "760"))
13+
window_height = int(_define("window_height", "480"))
14+
app_x = int(_define("app_x", "178"))
15+
app_y = int(_define("app_y", "222"))
16+
apps_x = int(_define("apps_x", "582"))
17+
apps_y = int(_define("apps_y", "222"))
1818

1919

2020
format = "UDZO"
@@ -35,10 +35,10 @@ def _define(name, default=None):
3535
window_rect = ((120, 120), (window_width, window_height))
3636

3737
arrange_by = None
38-
grid_spacing = 100
38+
grid_spacing = 120
3939
label_pos = "bottom"
40-
text_size = 16
41-
icon_size = 128
40+
text_size = 14
41+
icon_size = 104
4242

4343
icon_locations = {
4444
app_name: (app_x, app_y),

scripts/build-macos-dmg.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ python3 -m dmgbuild \
5252
-D "app=${app_path}" \
5353
-D "volume_name=${product_name}" \
5454
-D "background=assets/dmg/background.png" \
55-
-D "window_width=720" \
56-
-D "window_height=460" \
57-
-D "app_x=160" \
58-
-D "app_y=220" \
59-
-D "apps_x=560" \
60-
-D "apps_y=220" \
55+
-D "window_width=760" \
56+
-D "window_height=480" \
57+
-D "app_x=178" \
58+
-D "app_y=222" \
59+
-D "apps_x=582" \
60+
-D "apps_y=222" \
6161
"${product_name}" \
6262
"${dmg_path}"
6363

0 commit comments

Comments
 (0)