mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-171989 Signing of IDEA Mac OS application sometimes fail with "A timestamp was expected but was not found" error
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
#!/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
|
||||
@@ -70,12 +67,27 @@ shopt -u nullglob
|
||||
# Make sure *.p12 is imported into local KeyChain
|
||||
security unlock-keychain -p ${PASSWORD} /Users/${USERNAME}/Library/Keychains/login.keychain
|
||||
|
||||
echo "signing ${EXPLODED}/$BUILD_NAME"
|
||||
codesign -v --deep --force -s "${CODESIGN_STRING}" ${EXPLODED}/"$BUILD_NAME"
|
||||
echo "signing is done"
|
||||
echo "check sign"
|
||||
codesign -v ${EXPLODED}/"$BUILD_NAME" -vvvvv
|
||||
echo "check sign done"
|
||||
attemp=1
|
||||
limit=3
|
||||
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
|
||||
fi
|
||||
echo "wait for 30 sec and try to sign again"
|
||||
sleep 30;
|
||||
else
|
||||
let "attemp += $limit"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Zipping ${BUILD_NAME} to $1.sit..."
|
||||
cd ${EXPLODED}
|
||||
|
||||
Reference in New Issue
Block a user