Skip to content

Commit

Permalink
fix osslsigncode
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Oct 30, 2017
1 parent c8db5c5 commit b335842
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions scripts/ci/funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,34 +291,40 @@ function sign_binary()
#sign SHA1
$HOME/osslsigncode sign \
-pkcs12 $HOME/cert.p12 \
-pass $CODESIGN_WIN_PASS \
-pass "$CODESIGN_WIN_PASS" \
-h sha1 \
-n "Moolticute" \
-i "http://themooltipass.com" \
-t http://timestamp.comodoca.com \
-in $1 -out ${1}_signed1
-in "$1" -out "${1}_signed1"

if [ $? -eq 0 ] ; then
if [ ! $? -eq 0 ] ; then
set -e
rm ${1}_signed1
return
echo "Failed to codesign SHA1"
return 255
fi

#Append SHA256
$HOME/osslsigncode sign \
-pkcs12 $HOME/cert.p12 \
-pass $CODESIGN_WIN_PASS \
-pass "$CODESIGN_WIN_PASS" \
-h sha256 \
-n "Moolticute" \
-i "http://themooltipass.com" \
-ts http://timestamp.comodoca.com \
-in ${1}_signed1 -out ${1}_signed2 \
-in "${1}_signed1" -out "${1}_signed2" \
-nest

if [ $? -eq 0 ] ; then
mv ${1}_signed2 $1
rm ${1}_signed1
if [ ! $? -eq 0 ] ; then
set -e
echo "Failed to codesign SHA256"
return 255
fi

mv ${1}_signed2 $1
rm ${1}_signed1
fi
fi
set -e
}

Expand Down

0 comments on commit b335842

Please sign in to comment.