mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
MacOSX code sign procedure (part 2)
This commit is contained in:
parent
3492911527
commit
9b16f7baa5
@ -275,9 +275,14 @@
|
||||
<!-- Unzip unsigned app into working dir -->
|
||||
<unzip dest="macosx/work" src="macosx/arduino-${version}-${platform}.zip" overwrite="false"/>
|
||||
|
||||
<!-- Unlock keychain file -->
|
||||
<exec executable="security" dir="macosx/work">
|
||||
<arg line="unlock-keychain -p "${macosx-sign-keychain-pass}" "${macosx-sign-keychain}"" />
|
||||
</exec>
|
||||
|
||||
<!-- Sign app -->
|
||||
<exec executable="codesign" dir="macosx/work" failonerror="true">
|
||||
<arg line="-s "${macosx-sign-id}" -v Arduino.app/" />
|
||||
<arg line="--keychain "${macosx-sign-keychain}" -s "${macosx-sign-id}" -v Arduino.app/" />
|
||||
</exec>
|
||||
|
||||
<!-- Create signed zip file -->
|
||||
@ -295,7 +300,9 @@
|
||||
</target>
|
||||
|
||||
<target name="macosx-singed-dist-check">
|
||||
<fail unless="macosx-sign-id" message="Please set the property 'macosx-sign-id' to correctly sign distribution file" />
|
||||
<fail unless="macosx-sign-keychain" message="Please set the property 'macosx-sign-keychain' to the correct keychain file" />
|
||||
<fail unless="macosx-sign-keychain-pass" message="Please set the property 'macosx-sign-keychain-pass' with the password to unlock the keychain" />
|
||||
<fail unless="macosx-sign-id" message="Please set the property 'macosx-sign-id' to the correct cert identifier" />
|
||||
</target>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user