Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: switched from biplist to plistlib (following dmgbuild's example)
  • Loading branch information
ErikBjare committed Nov 15, 2020
1 parent b80f82a commit 5ddb5f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/package/dmgbuild-settings.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import biplist
import plistlib
import os.path

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

def icon_from_app(app_path):
plist_path = os.path.join(app_path, 'Contents', 'Info.plist')
plist = biplist.readPlist(plist_path)
with open(plist_path, "rb") as f:
plist = plistlib.load(f)
icon_name = plist['CFBundleIconFile']
icon_root,icon_ext = os.path.splitext(icon_name)
if not icon_ext:
Expand Down

0 comments on commit 5ddb5f6

Please sign in to comment.