Skip to content

Commit f346092

Browse files
committed
Revert appbundler until we figure out how to support OSX 10.6
1 parent b36beeb commit f346092

File tree

2 files changed

+22
-47
lines changed

2 files changed

+22
-47
lines changed

build/build.xml

+21-46
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
2323
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
2424

25-
<condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
25+
<condition property="staging_hardware_folder" value="Arduino.app/Contents/Resources/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
2626
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
2727
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
2828
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
@@ -207,48 +207,18 @@
207207
<target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
208208
<mkdir dir="macosx/work" />
209209

210-
<get src="http://downloads.arduino.cc/appbundler-1.0-arduino.jar" dest="macosx" usetimestamp="true" skipexisting="true" />
211-
212-
<taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath="macosx/appbundler-1.0-arduino.jar" />
213-
214-
<bundleapp outputdirectory="macosx/work"
215-
name="Arduino"
216-
displayname="Arduino"
217-
shortversion="${version}"
218-
icon="macosx/template.app/Contents/Resources/processing.icns"
219-
identifier="cc.arduino.Arduino"
220-
mainclassname="processing.app.Base">
221-
222-
<documentType name="Arduino Source File"
223-
icon="macosx/template.app/Contents/Resources/pde.icns"
224-
role="Editor">
225-
<extension>ino</extension>
226-
<extension>c</extension>
227-
<extension>cpp</extension>
228-
<extension>h</extension>
229-
<mimeType>text/plain</mimeType>
230-
<osType>TEXT</osType>
231-
</documentType>
232-
233-
<classpath file="../app/pde.jar" />
234-
<classpath file="../core/core.jar" />
235-
<classpath dir="../app/lib" includes="*.jar"/>
236-
237-
<option value="-Djavaroot=$APP_ROOT/Contents/Java"/>
238-
<option value="-Xms128M"/>
239-
<option value="-Xmx256M"/>
240-
<option value="-Dapple.laf.useScreenMenuBar=true"/>
241-
<option value="-Dapple.awt.showGrowBox=false"/>
242-
<option value="-Dcom.apple.smallTabs=true"/>
243-
<option value="-Dapple.awt.Antialiasing=false"/>
244-
<option value="-Dapple.awt.TextAntialiasing=true"/>
245-
<option value="-Dcom.apple.hwaccel=true"/>
246-
<option value="-Dapple.awt.use-file-dialog-packages=false"/>
247-
<option value="-Dapple.awt.graphics.UseQuartz=true"/>
248-
<option value="-Dapple.awt.application.name=Arduino"/>
249-
</bundleapp>
250-
251-
<copy todir="macosx/work/Arduino.app/Contents/Java">
210+
<!-- assemble the pde -->
211+
<copy todir="macosx/work/Arduino.app">
212+
<fileset dir="macosx/template.app" includes="**"/>
213+
</copy>
214+
215+
<chmod file="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="755" />
216+
217+
<copy todir="macosx/work/Arduino.app/Contents/Resources/Java" flatten="true">
218+
<fileset refid="runtime.jars"/>
219+
</copy>
220+
221+
<copy todir="macosx/work/Arduino.app/Contents/Resources/Java">
252222
<fileset dir="shared" includes="lib/**" />
253223
<fileset file="shared/revisions.txt" />
254224
</copy>
@@ -279,7 +249,7 @@
279249
<chmod file="macosx/work/${staging_hardware_folder}/tools/bossac" perm="+x" />
280250

281251
<antcall target="assemble">
282-
<param name="target.path" value="macosx/work/Arduino.app/Contents/Java" />
252+
<param name="target.path" value="macosx/work/Arduino.app/Contents/Resources/Java" />
283253
</antcall>
284254

285255
<antcall target="unzip-arm-toolchain">
@@ -297,8 +267,8 @@
297267

298268
<get src="http://downloads.arduino.cc/libastylej-2.03.zip" dest="macosx" usetimestamp="true" skipexisting="true"/>
299269
<unzip src="macosx/libastylej-2.03.zip" dest="macosx" overwrite="true"/>
300-
<copy file="macosx/libastylej/libastylej.jnilib" todir="macosx/work/Arduino.app/Contents/Java/lib/" />
301-
<chmod perm="755" file="macosx/work/Arduino.app/Contents/Java/lib/libastylej.jnilib" />
270+
<copy file="macosx/libastylej/libastylej.jnilib" todir="macosx/work/Arduino.app/Contents/Resources/Java/lib/" />
271+
<chmod perm="755" file="macosx/work/Arduino.app/Contents/Resources/Java/lib/libastylej.jnilib" />
302272
</target>
303273

304274
<target name="macosx-run" depends="macosx-build" description="Run Mac OS X version">
@@ -377,6 +347,11 @@
377347
<fileset dir="macosx/work/${staging_hardware_folder}/tools/avr/libexec/gcc/avr/4.8.1/" includes="*" />
378348
</chmod>
379349

350+
<replace file="macosx/work/Arduino.app/Contents/Info.plist"
351+
token="VERSION" value="${version}" />
352+
<replace file="macosx/work/Arduino.app/Contents/Info.plist"
353+
token="REVISION" value="${revision}" />
354+
380355
<exec executable="zip" dir="macosx/work">
381356
<arg line="-q -r ../arduino-${version}-${platform}.zip ." />
382357
</exec>

build/macosx/template.app/Contents/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<!-- In 0149, removed /System/Library/Java from the CLASSPATH because
7777
it can cause problems if users have installed weird files there.
7878
http://dev.processing.org/bugs/show_bug.cgi?id=1045 -->
79-
<string>$JAVAROOT/pde.jar:$JAVAROOT/core.jar:$JAVAROOT/antlr.jar:$JAVAROOT/ecj.jar:$JAVAROOT/registry.jar:$JAVAROOT/quaqua.jar:$JAVAROOT/jssc-2.8.0.jar:$JAVAROOT/commons-codec-1.7.jar:$JAVAROOT/commons-exec-1.1.jar:$JAVAROOT/commons-httpclient-3.1.jar:$JAVAROOT/commons-logging-1.0.4.jar:$JAVAROOT/jmdns-3.4.1.jar:$JAVAROOT/jsch-0.1.50.jar</string>
79+
<string>$JAVAROOT/pde.jar:$JAVAROOT/core.jar:$JAVAROOT/antlr.jar:$JAVAROOT/apple.jar:$JAVAROOT/ecj.jar:$JAVAROOT/registry.jar:$JAVAROOT/quaqua.jar:$JAVAROOT/jssc-2.8.0.jar:$JAVAROOT/commons-codec-1.7.jar:$JAVAROOT/commons-exec-1.1.jar:$JAVAROOT/commons-httpclient-3.1.jar:$JAVAROOT/commons-logging-1.0.4.jar:$JAVAROOT/jmdns-3.4.1.jar:$JAVAROOT/jsch-0.1.50.jar:$JAVAROOT/jna.jar</string>
8080

8181
<key>JVMArchs</key>
8282
<array>

0 commit comments

Comments
 (0)