Commit 28ddbd47 authored by Adrien's avatar Adrien Committed by GitHub

make build fail on codesign errors (#1777)

parent 4bc98319
......@@ -9,7 +9,12 @@ zipFile="$filename.zip"
cd $workDir
zip -q $zipFile -r $filename
curl --request POST -F exeFile=@$zipFile $url > /tmp/$zipFile
echo "Signing $zipFile..."
HTTP_STATUS=$(curl --request POST -F exeFile=@$zipFile $url -w "%{http_code}" -o /tmp/$zipFile)
if [ $HTTP_STATUS != 200 ]; then
echo "An error occured while signing $zipFile..."
return 1
fi
cat /tmp/$zipFile > $zipFile
rm -r $filename
unzip -q $zipFile
......
......@@ -12,7 +12,11 @@ cd $workdir
echo "cd into $workdir"
if [ -f $filename ]; then
echo "Signing $filename..."
curl --request POST -F exeFile=@$filename $url > /tmp/$filename
HTTP_STATUS=$(curl --request POST -F exeFile=@$filename $url -w "%{http_code}" -o /tmp/$filename)
if [ $HTTP_STATUS != 200 ]; then
echo "An error occured while signing $filename..."
return 1
fi
cat /tmp/$filename > $output
if [ $filename != $output ]; then
rm $filename
......
Markdown is supported
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