Skip to content

Commit bebaf4a

Browse files
Update signjars.yml
1 parent a52f9b2 commit bebaf4a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/signjars.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
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
@@ -61,7 +62,7 @@ jobs:
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
@@ -72,7 +73,7 @@ jobs:
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

0 commit comments

Comments
 (0)