File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535
3636 # Step 2: Define the directory containing the JARs and native libraries and the temp directory for signed JARs
3737 LIB_DIR="${PWD}/BUNDLES/com.espressif.idf.serial.monitor/lib"
38- SIGNED_JARS_DIR=$(mktemp -d) # Create a temporary directory for signed JARs
38+ SIGNED_JARS_DIR="${RUNNER_TEMP}/signed-jars" # Use GitHub's RUNNER_TEMP for storing signed JARs
39+ mkdir -p "$SIGNED_JARS_DIR"
3940
4041 # Step 3: Extract, sign native libraries, repackage, and sign the JARs with Apple codesign
4142 for jar in "${LIB_DIR}"/*.jar; do
6162
6263 # Repackage the signed JAR
6364 pushd "$TEMP_DIR"
64- zip -r "${SIGNED_JARS_DIR}/$(basename "$jar")" * # Save signed JAR to temporary directory
65+ zip -r "${SIGNED_JARS_DIR}/$(basename "$jar")" * # Save signed JAR to the temporary signed directory
6566 popd
6667
6768 # Sign the entire JAR with Apple codesign, using the same entitlements
7273 echo "Verifying signed JAR: ${SIGNED_JARS_DIR}/$(basename "$jar")"
7374 /usr/bin/codesign -dvv "${SIGNED_JARS_DIR}/$(basename "$jar")"
7475
75- # Clean up temporary directory
76+ # Clean up extracted directory (but leave the signed JAR in SIGNED_JARS_DIR)
7677 rm -rf "$TEMP_DIR"
7778 done
7879
You can’t perform that action at this time.
0 commit comments