Skip to content

Commit

Permalink
fixup! JBR-8196 fix calculating the number of attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
vprovodin authored and YaaZ committed Mar 1, 2025
1 parent 2b5f0a1 commit 64abe9f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jb/project/tools/mac/scripts/signapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tar -xzvf "$INPUT_FILE" --directory $EXPLODED
BUILD_NAME="$(ls "$EXPLODED")"
#sed -i '' s/BNDL/APPL/ $EXPLODED/$BUILD_NAME/Contents/Info.plist
rm -f $EXPLODED/$BUILD_NAME/Contents/CodeResources
rm "$INPUT_FILE"
mv "$INPUT_FILE" "$INPUT_FILE".origin

log "$INPUT_FILE extracted and removed"

Expand Down Expand Up @@ -76,6 +76,7 @@ fi

attempt=1
limit=1
ec=0
set +e
while [[ $attempt -le $limit ]]; do
log "Signing (attempt $attempt) $APPLICATION_PATH ..."
Expand All @@ -95,6 +96,11 @@ done

set -e

if [[ $ec -ne 0 ]]; then
log "Signing failed, restore original input file"
mv "$INPUT_FILE".origin "$INPUT_FILE"
fi

if [ "$NOTARIZE" = "yes" ]; then
log "Notarizing..."
"$SCRIPT_DIR/notarize.sh" "$PKG_NAME"
Expand Down

0 comments on commit 64abe9f

Please sign in to comment.