We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80f82a commit 5ddb5f6Copy full SHA for 5ddb5f6
scripts/package/dmgbuild-settings.py
@@ -1,7 +1,7 @@
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3
4
-import biplist
+import plistlib
5
import os.path
6
7
# Use like this: dmgbuild -s settings.py "Test Volume" test.dmg
@@ -18,7 +18,8 @@
18
19
def icon_from_app(app_path):
20
plist_path = os.path.join(app_path, 'Contents', 'Info.plist')
21
- plist = biplist.readPlist(plist_path)
+ with open(plist_path, "rb") as f:
22
+ plist = plistlib.load(f)
23
icon_name = plist['CFBundleIconFile']
24
icon_root,icon_ext = os.path.splitext(icon_name)
25
if not icon_ext:
0 commit comments