mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-09 22:24:14 +03:00
MacOSX code sign procedure
This commit is contained in:
@@ -262,6 +262,45 @@
|
|||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- - - - - - - - - - - - - - - - -->
|
||||||
|
<!-- Sign application for MacOSX. -->
|
||||||
|
<!-- - - - - - - - - - - - - - - - -->
|
||||||
|
<target name="macosx-signed-dist" if="macosx" depends="macosx-singed-dist-check, dist"
|
||||||
|
description="Create a downloadable and signed .zip for the Mac OS X version">
|
||||||
|
<fail unless="version" message="Please set the property 'version' to correctly sign distribution file" />
|
||||||
|
|
||||||
|
<!-- Remove everything from working folder -->
|
||||||
|
<delete dir="macosx/work/Arduino.app" />
|
||||||
|
|
||||||
|
<!-- Unzip unsigned app into working dir -->
|
||||||
|
<unzip dest="macosx/work" src="macosx/arduino-${version}-${platform}.zip" overwrite="false"/>
|
||||||
|
|
||||||
|
<!-- Sign app -->
|
||||||
|
<exec executable="codesign" dir="macosx/work" failonerror="true">
|
||||||
|
<arg line="-s "${macosx-sign-id}" -v Arduino.app/" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<!-- Create signed zip file -->
|
||||||
|
<exec executable="zip" dir="macosx/work">
|
||||||
|
<arg line="-q -r ../arduino-${version}-${platform}-signed.zip ." />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<echo>
|
||||||
|
=======================================================
|
||||||
|
Arduino for Mac OS X built and signed.
|
||||||
|
|
||||||
|
macosx/arduino-${version}-${platform}-signed.zip
|
||||||
|
=======================================================
|
||||||
|
</echo>
|
||||||
|
</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" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- - - - - - - - - - - - - - - - - - - -->
|
||||||
|
<!-- Build distribution file for MacOSX. -->
|
||||||
|
<!-- - - - - - - - - - - - - - - - - - - -->
|
||||||
<target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a downloadable .zip for the Mac OS X version">
|
<target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a downloadable .zip for the Mac OS X version">
|
||||||
<!-- The ant copy command does not preserve permissions. -->
|
<!-- The ant copy command does not preserve permissions. -->
|
||||||
<chmod file="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="+x" />
|
<chmod file="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="+x" />
|
||||||
|
Reference in New Issue
Block a user