PulseCanvas / app / packaging / macos / settings.py
| 1 | """Finder presentation for the direct-download PulseCanvas Studio installer.""" |
| 2 | from pathlib import Path |
| 3 | |
| 4 | app = Path(defines["app"]).resolve() |
| 5 | if not app.is_dir() or app.name != "PulseCanvas Studio.app": |
| 6 | raise ValueError("The installer requires an existing PulseCanvas Studio.app bundle") |
| 7 | |
| 8 | format = "UDZO" |
| 9 | filesystem = "HFS+" |
| 10 | files = [str(app)] |
| 11 | symlinks = {"Applications": "/Applications"} |
| 12 | # The background is inside the signed app's Resources. No stray background file |
| 13 | # appears at the disk root, even when Finder's Show Hidden Files is enabled. |
| 14 | background = None |
| 15 | window_rect = ((160, 160), (720, 520)) |
| 16 | default_view = "icon-view" |
| 17 | show_toolbar = False |
| 18 | show_sidebar = False |
| 19 | show_status_bar = False |
| 20 | show_pathbar = False |
| 21 | show_tab_view = False |
| 22 | arrange_by = None |
| 23 | grid_spacing = 80 |
| 24 | scroll_position = (0, 0) |
| 25 | icon_size = 104 |
| 26 | text_size = 15 |
| 27 | label_pos = "bottom" |
| 28 | show_icon_preview = False |
| 29 | icon_locations = {"PulseCanvas Studio.app": (195, 230), "Applications": (525, 230)} |
| 30 | # Do not set FinderInfo on a signed bundle: codesign rejects that added xattr. |
| 31 | hide_extensions = [] |