forked from ClanGenOfficial/clangen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappdmg.py
More file actions
34 lines (25 loc) · 842 Bytes
/
Copy pathappdmg.py
File metadata and controls
34 lines (25 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from pathlib import Path
import plistlib
def get_icon(app_path):
app_path_obj = Path(app_path)
plist_path = app_path_obj.joinpath("Contents", "Info.plist")
with open(plist_path, "rb") as f:
plist = plistlib.load(f)
icon_name = plist["CFBundleIconFile"]
return str(app_path_obj.joinpath("Contents", "Resources", icon_name))
application = "dist/Clangen.app"
badge_icon = get_icon(application)
background = "resources/images/mac_installer_bg_blank.png"
format = "UDBZ"
files = [application]
symlinks = {"Applications": "/Applications"}
icon_locations = {"Clangen.app": (66, 200), "Applications": (204, 200)}
window_rect = ((100, 100), (600, 500))
default_view = "icon-view"
arrange_by = None
grid_offset = (0, 0)
grid_spacing = 100
scroll_position = (0, 0)
label_pos = "bottom"
text_size = 12
icon_size = 75