mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-20747
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#!/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
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user