mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
MacOSX code sign procedure (part 2)
This commit is contained in:
@ -275,9 +275,14 @@
|
|||||||
<!-- Unzip unsigned app into working dir -->
|
<!-- Unzip unsigned app into working dir -->
|
||||||
<unzip dest="macosx/work" src="macosx/arduino-${version}-${platform}.zip" overwrite="false"/>
|
<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 -->
|
<!-- Sign app -->
|
||||||
<exec executable="codesign" dir="macosx/work" failonerror="true">
|
<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>
|
</exec>
|
||||||
|
|
||||||
<!-- Create signed zip file -->
|
<!-- Create signed zip file -->
|
||||||
@ -295,7 +300,9 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="macosx-singed-dist-check">
|
<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>
|
</target>
|
||||||
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - - - -->
|
||||||
|
Reference in New Issue
Block a user