diff --git a/utils/cmake/deploy.cmake b/utils/cmake/deploy.cmake index 8ef82e71ca..20c601b1ad 100644 --- a/utils/cmake/deploy.cmake +++ b/utils/cmake/deploy.cmake @@ -78,7 +78,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") COMMENT "Setting up dmgbuild virtualenv" OUTPUT ${DMGBUILD} COMMAND python3 -m venv ${CMAKE_BINARY_DIR}/venv - COMMAND ${CMAKE_BINARY_DIR}/venv/bin/python -m pip install -q dmgbuild biplist + COMMAND ${CMAKE_BINARY_DIR}/venv/bin/python -m pip install -q dmgbuild ) add_custom_command( diff --git a/utils/rbutilqt/dmgbuild.cfg b/utils/rbutilqt/dmgbuild.cfg index 8f7a933237..70d086c098 100644 --- a/utils/rbutilqt/dmgbuild.cfg +++ b/utils/rbutilqt/dmgbuild.cfg @@ -1,12 +1,14 @@ # Configuration for creating a dmg with dmgbuild # (https://github.com/al45tair/dmgbuild) -# Needs biplist as additional package. +# Requires at least Python 3.4 import os -import biplist +import plistlib _appbundle = defines['appbundle'] -_plist = biplist.readPlist(os.path.join(_appbundle, 'Contents/Info.plist')) +_plfile = open(os.path.join(_appbundle, 'Contents/Info.plist')) +_pldata = _plfile.read().encode() +_plist = plistlib.loads(_pldata) _iconfile = os.path.join(_appbundle, 'Contents/Resources', _plist['CFBundleIconFile']) files = [ _appbundle ]