Skip to content

Commit

Permalink
added codesigning jdk files in build.sh for local macos builds to mat…
Browse files Browse the repository at this point in the history
…ch mac-dmg.yml ci build
  • Loading branch information
tobihagemann committed Jul 30, 2024
1 parent 45c7d2b commit d60ced5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/mac/dmg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ mvn -B -Djavafx.platform=mac -f../../../pom.xml license:add-third-party \

# codesign
if [ -n "${CODESIGN_IDENTITY}" ] && [ -n "${TEAM_IDENTIFIER}" ]; then
echo "Codesigning jdk files..."
find ${APP_NAME}.app/Contents/runtime/Contents/Home/lib/ -name '*.dylib' -exec codesign --force -s ${CODESIGN_IDENTITY} {} \;
find ${APP_NAME}.app/Contents/runtime/Contents/Home/lib/ -name 'jspawnhelper' -exec codesign --force -o runtime -s ${CODESIGN_IDENTITY} {} \;
echo "Codesigning jar contents..."
find ${APP_NAME}.app/Contents/runtime/Contents/MacOS -name '*.dylib' -exec codesign --force -s ${CODESIGN_IDENTITY} {} \;
for JAR_PATH in `find ${APP_NAME}.app -name "*.jar"`; do
if [[ `unzip -l ${JAR_PATH} | grep '.dylib\|.jnilib'` ]]; then
Expand Down

0 comments on commit d60ced5

Please sign in to comment.