summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/cmake/deploy.cmake2
-rw-r--r--utils/rbutilqt/dmgbuild.cfg8
2 files changed, 6 insertions, 4 deletions
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")
78 COMMENT "Setting up dmgbuild virtualenv" 78 COMMENT "Setting up dmgbuild virtualenv"
79 OUTPUT ${DMGBUILD} 79 OUTPUT ${DMGBUILD}
80 COMMAND python3 -m venv ${CMAKE_BINARY_DIR}/venv 80 COMMAND python3 -m venv ${CMAKE_BINARY_DIR}/venv
81 COMMAND ${CMAKE_BINARY_DIR}/venv/bin/python -m pip install -q dmgbuild biplist 81 COMMAND ${CMAKE_BINARY_DIR}/venv/bin/python -m pip install -q dmgbuild
82 ) 82 )
83 83
84 add_custom_command( 84 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 @@
1# Configuration for creating a dmg with dmgbuild 1# Configuration for creating a dmg with dmgbuild
2# (https://github.com/al45tair/dmgbuild) 2# (https://github.com/al45tair/dmgbuild)
3# Needs biplist as additional package. 3# Requires at least Python 3.4
4 4
5import os 5import os
6import biplist 6import plistlib
7 7
8_appbundle = defines['appbundle'] 8_appbundle = defines['appbundle']
9_plist = biplist.readPlist(os.path.join(_appbundle, 'Contents/Info.plist')) 9_plfile = open(os.path.join(_appbundle, 'Contents/Info.plist'))
10_pldata = _plfile.read().encode()
11_plist = plistlib.loads(_pldata)
10_iconfile = os.path.join(_appbundle, 'Contents/Resources', _plist['CFBundleIconFile']) 12_iconfile = os.path.join(_appbundle, 'Contents/Resources', _plist['CFBundleIconFile'])
11 13
12files = [ _appbundle ] 14files = [ _appbundle ]