Browse Source

codesigning dylib/jnilib inside jars needs to be forced as well (they may already be signed but could be problematic for notarization)

Tobias Hagemann 3 years ago
parent
commit
db843bb1d5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .github/workflows/release.yml

+ 2 - 2
.github/workflows/release.yml

@@ -379,8 +379,8 @@ jobs:
               OUTPUT_PATH=${JAR_PATH%.*}
               echo "Codesigning libs in ${JAR_FILENAME}..."
               unzip -q ${JAR_PATH} -d ${OUTPUT_PATH}
-              find ${OUTPUT_PATH} -name '*.dylib' -exec codesign -s ${CODESIGN_IDENTITY} {} \;
-              find ${OUTPUT_PATH} -name '*.jnilib' -exec codesign -s ${CODESIGN_IDENTITY} {} \;
+              find ${OUTPUT_PATH} -name '*.dylib' -exec codesign --force -s ${CODESIGN_IDENTITY} {} \;
+              find ${OUTPUT_PATH} -name '*.jnilib' -exec codesign --force -s ${CODESIGN_IDENTITY} {} \;
               rm ${JAR_PATH}
               pushd ${OUTPUT_PATH} > /dev/null
               zip -qr ../${JAR_FILENAME} *