mirror of https://github.com/noisymime/Arduino.git
Changing Mac OS X build to a .zip file (and adding OS name to archive).
http://code.google.com/p/arduino/issues/detail?id=645
This commit is contained in:
parent
9af71ad6e8
commit
33544fc3e6
|
@ -217,7 +217,37 @@
|
||||||
<exec executable="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" spawn="true"/>
|
<exec executable="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" spawn="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a .dmg of 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. -->
|
||||||
|
<chmod file="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="+x" />
|
||||||
|
<chmod perm="+x">
|
||||||
|
<fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin" includes="**/*" />
|
||||||
|
<fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/bin" includes="**/*" />
|
||||||
|
<fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-3/bin" includes="**/*" />
|
||||||
|
<fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-4/bin" includes="**/*" />
|
||||||
|
<fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/3.4.6/" includes="**/cc1*" />
|
||||||
|
<fileset dir="macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/4.3.2/" includes="**/cc1*" />
|
||||||
|
</chmod>
|
||||||
|
|
||||||
|
<replace file="macosx/work/Arduino.app/Contents/Info.plist"
|
||||||
|
token="VERSION" value="${version}" />
|
||||||
|
<replace file="macosx/work/Arduino.app/Contents/Info.plist"
|
||||||
|
token="REVISION" value="${revision}" />
|
||||||
|
|
||||||
|
<exec executable="ditto" dir="macosx/work">
|
||||||
|
<arg line="-c -k -rsrc . ../arduino-${version}-macosx.zip" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<echo>
|
||||||
|
=======================================================
|
||||||
|
Arduino for Mac OS X was built. Grab the image from
|
||||||
|
|
||||||
|
macosx/arduino-${version}-macosx.zip
|
||||||
|
=======================================================
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="macosx-dist-old" if="macosx" depends="macosx-build" description="Create a .dmg of the Mac OS X version">
|
||||||
<!-- now build the dmg -->
|
<!-- now build the dmg -->
|
||||||
<gunzip src="macosx/template.dmg.gz" dest="macosx/working.dmg" />
|
<gunzip src="macosx/template.dmg.gz" dest="macosx/working.dmg" />
|
||||||
|
|
||||||
|
@ -271,7 +301,6 @@
|
||||||
</echo>
|
</echo>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<!-- - - - - - - - -->
|
<!-- - - - - - - - -->
|
||||||
<!-- Linux -->
|
<!-- Linux -->
|
||||||
<!-- - - - - - - - -->
|
<!-- - - - - - - - -->
|
||||||
|
@ -352,7 +381,7 @@
|
||||||
<tar compression="gzip" basedir="linux/work"
|
<tar compression="gzip" basedir="linux/work"
|
||||||
destfile="linux/arduino-${version}.tgz" />
|
destfile="linux/arduino-${version}.tgz" />
|
||||||
-->
|
-->
|
||||||
<tar compression="gzip" destfile="linux/arduino-${version}.tgz">
|
<tar compression="gzip" destfile="linux/arduino-${version}-linux.tgz">
|
||||||
<tarfileset dir="linux/work"
|
<tarfileset dir="linux/work"
|
||||||
prefix="arduino-${version}"
|
prefix="arduino-${version}"
|
||||||
excludes="arduino,
|
excludes="arduino,
|
||||||
|
@ -368,7 +397,7 @@
|
||||||
=======================================================
|
=======================================================
|
||||||
Arduino for Linux was built. Grab the archive from
|
Arduino for Linux was built. Grab the archive from
|
||||||
|
|
||||||
build/linux/arduino-${version}.tgz
|
build/linux/arduino-${version}-linux.tgz
|
||||||
=======================================================
|
=======================================================
|
||||||
</echo>
|
</echo>
|
||||||
</target>
|
</target>
|
||||||
|
@ -477,12 +506,12 @@
|
||||||
excludes="java/**" />
|
excludes="java/**" />
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<zip destfile="windows/arduino-${version}.zip">
|
<zip destfile="windows/arduino-${version}-windows.zip">
|
||||||
<zipfileset dir="windows/work"
|
<zipfileset dir="windows/work"
|
||||||
prefix="arduino-${version}" />
|
prefix="arduino-${version}" />
|
||||||
</zip>
|
</zip>
|
||||||
|
|
||||||
<zip destfile="windows/arduino-${version}-expert.zip">
|
<zip destfile="windows/arduino-${version}-windows-expert.zip">
|
||||||
<zipfileset dir="windows/work"
|
<zipfileset dir="windows/work"
|
||||||
prefix="arduino-${version}"
|
prefix="arduino-${version}"
|
||||||
excludes="java/**" />
|
excludes="java/**" />
|
||||||
|
@ -492,8 +521,8 @@
|
||||||
=======================================================
|
=======================================================
|
||||||
Arduino for Windows was built. Grab the archive from
|
Arduino for Windows was built. Grab the archive from
|
||||||
|
|
||||||
windows/arduino-${version}.zip
|
windows/arduino-${version}-windows.zip
|
||||||
windows/arduino-${version}-expert.zip
|
windows/arduino-${version}-windows-expert.zip
|
||||||
=======================================================
|
=======================================================
|
||||||
</echo>
|
</echo>
|
||||||
</target>
|
</target>
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
|
|
||||||
<!-- all these need to change for new releases -->
|
<!-- all these need to change for new releases -->
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>1.0-rc2</string>
|
<string>VERSION</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>0100</string>
|
<string>REVISION</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0-rc2</string>
|
<string>VERSION</string>
|
||||||
<!-- now stop changing things and get outta here -->
|
<!-- now stop changing things and get outta here -->
|
||||||
|
|
||||||
<key>CFBundleAllowMixedLocalizations</key>
|
<key>CFBundleAllowMixedLocalizations</key>
|
||||||
|
|
Loading…
Reference in New Issue