Skip to content

Commit

Permalink
[macos] codesign binary addons
Browse files Browse the repository at this point in the history
  • Loading branch information
kambala-decapitator committed Jan 25, 2020
1 parent f011640 commit 8fb2719
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion vars/buildPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8fb2719

Please sign in to comment.