Commit 5ed2b17d authored by Vladimir.Orlov's avatar Vladimir.Orlov Committed by Vladimir.Orlov
Browse files

IDEA-CR-20747

(cherry picked from commit c78d3e59)
parent 11303a8a
Branches unavailable Tags unavailable
No related merge requests found
Showing with 17 additions and 11 deletions
+17 -11
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true
EXPLODED=$2.exploded
......@@ -69,22 +72,22 @@ security unlock-keychain -p ${PASSWORD} /Users/${USERNAME}/Library/Keychains/log
attemp=1
limit=3
set +e
while [ $attemp -le $limit ]
do
echo "signing (attemp $attemp) ${EXPLODED}/$BUILD_NAME"
codesign -v --deep --force -s "${CODESIGN_STRING}" ${EXPLODED}/"$BUILD_NAME"
echo "signing done"
codesign -v ${EXPLODED}/"$BUILD_NAME" -vvvvv
echo "check sign done"
if [ "$?" != "0" ]; then
let "attemp += 1"
if [ $attemp -eq $limit ]; then
#immediately exit script with an error if a command fails
set -euo pipefail
set -e
fi
echo "wait for 30 sec and try to sign again"
sleep 30;
else
echo "signing done"
codesign -v ${EXPLODED}/"$BUILD_NAME" -vvvvv
echo "check sign done"
let "attemp += $limit"
fi
done
......
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
FILENAME=$1
USERNAME=$2
PASSWORD=$3
......@@ -11,22 +14,22 @@ security unlock-keychain -p ${PASSWORD} /Users/${USERNAME}/Library/Keychains/log
attemp=1
limit=3
set +e
while [ $attemp -le $limit ]
do
echo "signing (attemp $attemp) ${FILEPATH}"
codesign -v --deep --force -s "${CODESIGN_STRING}" ${FILEPATH}
echo "signing done"
codesign -v ${FILEPATH} -vvvvv
echo "check sign done"
if [ "$?" != "0" ]; then
let "attemp += 1"
if [ $attemp -eq $limit ]; then
#immediately exit script with an error if a command fails
set -euo pipefail
set -e
fi
echo "wait for 30 sec and try to sign again"
sleep 30;
else
let "attemp += $limit"
fi
echo "signing done"
codesign -v ${FILEPATH} -vvvvv
echo "check sign done"
fi
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment