Skip to content

Commit 5ddb5f6

Browse files
committed
fix: switched from biplist to plistlib (following dmgbuild's example)
1 parent b80f82a commit 5ddb5f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/package/dmgbuild-settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
import biplist
4+
import plistlib
55
import os.path
66

77
# Use like this: dmgbuild -s settings.py "Test Volume" test.dmg
@@ -18,7 +18,8 @@
1818

1919
def icon_from_app(app_path):
2020
plist_path = os.path.join(app_path, 'Contents', 'Info.plist')
21-
plist = biplist.readPlist(plist_path)
21+
with open(plist_path, "rb") as f:
22+
plist = plistlib.load(f)
2223
icon_name = plist['CFBundleIconFile']
2324
icon_root,icon_ext = os.path.splitext(icon_name)
2425
if not icon_ext:

0 commit comments

Comments
 (0)