diff --git a/vars/buildPlugin.groovy b/vars/buildPlugin.groovy index cb66df5..8554fbe 100644 --- a/vars/buildPlugin.groovy +++ b/vars/buildPlugin.groovy @@ -161,7 +161,17 @@ def call(Map addonParams = [:]) dir("tools/depends/target/binary-addons") { if (isUnix()) - sh "make -j $BUILDTHREADS ADDONS='${addon}' ADDONS_DEFINITION_DIR=`pwd`/addons ADDON_SRC_PREFIX=`pwd` EXTRA_CMAKE_ARGS=\"-DPACKAGE_ZIP=ON -DPACKAGE_DIR=`pwd`/../../../../cmake/addons/build/zips\" PACKAGE=1" + { + def extraCmakeArgs = [ + 'PACKAGE_ZIP=ON', + "PACKAGE_DIR=`pwd`/../../../../cmake/addons/build/zips", + ] + if (platform == 'osx-x86_64' && version == 'Leia') + extraCmakeArgs << 'CODESIGN_IDENTITY="Developer ID Application: Kodi Foundation"' + + def extraCmakeArgsStr = extraCmakeArgs.collect { '-D' + it }.join(' ') + sh "make -j $BUILDTHREADS ADDONS='${addon}' ADDONS_DEFINITION_DIR=`pwd`/addons ADDON_SRC_PREFIX=`pwd` EXTRA_CMAKE_ARGS=\"${extraCmakeArgsStr}\" PACKAGE=1" + } } if (!isUnix())