Skip to content

Commit 9b16f7b

Browse files
committed
MacOSX code sign procedure (part 2)
1 parent 3492911 commit 9b16f7b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

build/build.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,14 @@
275275
<!-- Unzip unsigned app into working dir -->
276276
<unzip dest="macosx/work" src="macosx/arduino-${version}-${platform}.zip" overwrite="false"/>
277277

278+
<!-- Unlock keychain file -->
279+
<exec executable="security" dir="macosx/work">
280+
<arg line="unlock-keychain -p &quot;${macosx-sign-keychain-pass}&quot; &quot;${macosx-sign-keychain}&quot;" />
281+
</exec>
282+
278283
<!-- Sign app -->
279284
<exec executable="codesign" dir="macosx/work" failonerror="true">
280-
<arg line="-s &quot;${macosx-sign-id}&quot; -v Arduino.app/" />
285+
<arg line="--keychain &quot;${macosx-sign-keychain}&quot; -s &quot;${macosx-sign-id}&quot; -v Arduino.app/" />
281286
</exec>
282287

283288
<!-- Create signed zip file -->
@@ -295,7 +300,9 @@
295300
</target>
296301

297302
<target name="macosx-singed-dist-check">
298-
<fail unless="macosx-sign-id" message="Please set the property 'macosx-sign-id' to correctly sign distribution file" />
303+
<fail unless="macosx-sign-keychain" message="Please set the property 'macosx-sign-keychain' to the correct keychain file" />
304+
<fail unless="macosx-sign-keychain-pass" message="Please set the property 'macosx-sign-keychain-pass' with the password to unlock the keychain" />
305+
<fail unless="macosx-sign-id" message="Please set the property 'macosx-sign-id' to the correct cert identifier" />
299306
</target>
300307

301308
<!-- - - - - - - - - - - - - - - - - - - -->

0 commit comments

Comments
 (0)