Skip to content

Commit 6c1696f

Browse files
committed
Fixed application signing check for codesign.
Sometimes "codesign" returns error code 1 when replacing an already existing signature.
1 parent aff29de commit 6c1696f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build/build.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,15 @@
284284
</exec>
285285

286286
<!-- Sign app -->
287-
<exec executable="codesign" dir="macosx/work" failonerror="true">
287+
<exec executable="codesign" dir="macosx/work">
288288
<arg line="--keychain &quot;${macosx-sign-keychain}&quot; --force -s &quot;${macosx-sign-id}&quot; -v Arduino.app/" />
289289
</exec>
290290

291+
<!-- Check for successful signing -->
292+
<exec executable="codesign" dir="macosx/work" failonerror="true">
293+
<arg line="-vvvv Arduino.app/" />
294+
</exec>
295+
291296
<delete file="macosx/arduino-${version}-${platform}.zip" />
292297

293298
<!-- Create signed zip file -->

0 commit comments

Comments
 (0)