|
47 | 47 | <condition property="launch4j-download-unpack-target-name" value="launch4j-windows"><os family="windows" /></condition>
|
48 | 48 | <property name="launch4j-download-unpack-target-name" value="launch4j-linux"/>
|
49 | 49 |
|
| 50 | + <property name="MACOSX_BUNDLED_JVM" value="${java.home}/../"/> |
| 51 | + <property name="WINDOWS_BUNDLED_JVM" value="${java.home}"/> |
| 52 | + |
50 | 53 | <!-- Libraries required for running arduino -->
|
51 | 54 | <fileset dir=".." id="runtime.jars">
|
52 | 55 | <include name="arduino-core/arduino-core.jar" />
|
|
729 | 732 | <target name="linux-dist" depends="build"
|
730 | 733 | description="Build .tar.xz of linux version">
|
731 | 734 |
|
732 |
| - <!--get src="http://dev.processing.org/build/jre-tools-6u18-linux-i586.tgz" |
733 |
| - dest="linux/jre.tgz" |
734 |
| - usetimestamp="true" /> |
735 |
| - <untar compression="gzip" |
736 |
| - dest="linux/work" |
737 |
| - src="linux/jre.tgz" |
738 |
| - overwrite="false"/--> |
739 |
| - |
740 |
| -<!-- |
741 |
| - <tar compression="gzip" basedir="linux/work" |
742 |
| - destfile="linux/arduino-${version}.tgz" /> |
743 |
| -
|
744 |
| - <tar compression="gzip" destfile="linux/arduino-${version}-linux.tgz"> |
745 |
| - <tarfileset dir="linux/work" |
746 |
| - prefix="arduino-${version}" |
747 |
| - excludes="arduino, |
748 |
| - hardware/tools/avrdude, |
749 |
| - java/**" |
750 |
| - /> |
751 |
| - <tarfileset file="linux/work/arduino" filemode="755" prefix="arduino-${version}" /> |
752 |
| - <tarfileset file="linux/work/hardware/tools/avrdude" filemode="755" |
753 |
| - prefix="arduino-${version}/hardware/tools" /> |
754 |
| - </tar> |
755 |
| ---> |
756 | 735 | <move file="linux/work" tofile="linux/arduino-${version}" />
|
757 | 736 |
|
758 | 737 | <exec executable="tar" dir="linux">
|
|
935 | 914 | dir="windows/work" spawn="true"/>
|
936 | 915 | </target>
|
937 | 916 |
|
938 |
| - <target name="windows-dist" depends="windows-build" |
939 |
| - description="Create .zip files of windows version"> |
| 917 | + <target name="windows-dist" depends="windows-build" description="Create .zip files of windows version"> |
940 | 918 |
|
941 |
| - <antcall target="unzip"> |
942 |
| - <param name="archive_file" value="windows/jre-8u31.zip" /> |
943 |
| - <param name="archive_url" value="http://arduino.cc/download.php?f=/jre-8u31.zip" /> |
944 |
| - <param name="final_folder" value="${staging_folder}/work/java" /> |
945 |
| - <param name="dest_folder" value="${staging_folder}/work/" /> |
946 |
| - </antcall> |
| 919 | + <loadproperties srcfile="${WINDOWS_BUNDLED_JVM}/../release" prefix="windows"/> |
| 920 | + |
| 921 | + <fail message="It looks like ${WINDOWS_BUNDLED_JVM} does not contain a Windows JVM"> |
| 922 | + <condition> |
| 923 | + <not> |
| 924 | + <equals arg1="${windows.OS_NAME}" arg2=""Windows""/> |
| 925 | + </not> |
| 926 | + </condition> |
| 927 | + </fail> |
| 928 | + |
| 929 | + <copy todir="${staging_folder}/work/java" includeemptydirs="true" preservelastmodified="true" overwrite="true" failonerror="true"> |
| 930 | + <fileset dir="${WINDOWS_BUNDLED_JVM}" includes="*/**"/> |
| 931 | + </copy> |
947 | 932 |
|
948 | 933 | <zip destfile="windows/arduino-${version}-${platform}.zip" level="9">
|
949 | 934 | <zipfileset dir="windows/work"
|
|
0 commit comments