Skip to content

Commit ed92d6d

Browse files
committed
add "ant app" version that launches w/ os launcher
1 parent 9ed6dee commit ed92d6d

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

build/build.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,13 @@
307307
<antcall target="${platform}-run" />
308308
</target>
309309

310+
<!-- Run the app in a more "native" manner, i.e. no additional
311+
console for debugging. Ensures that double-clicking shortcuts
312+
and other desktop integration features work properly. -->
313+
<target name="app" description="Run Processing w/o console.">
314+
<antcall target="${platform}-run-app" />
315+
</target>
316+
310317
<target name="dist" depends="revision-check"
311318
description="Build Processing for distribution.">
312319
<input message="Enter version number:"
@@ -682,10 +689,16 @@
682689
<exec executable="open" dir="macosx/work" spawn="true">
683690
<arg value="-a" />
684691
<arg value="/Applications/Utilities/Terminal.app" />
685-
<!-- <arg value="Processing.app/Contents/MacOS/JavaApplicationStub" />-->
686692
<arg value="Processing.app/Contents/MacOS/Processing" />
687693
</exec>
688694
</target>
695+
696+
<target name="macosx-run-app" depends="macosx-build"
697+
description="Run Mac OS X version without console">
698+
<exec executable="open" dir="macosx/work" spawn="true">
699+
<arg value="Processing.app" />
700+
</exec>
701+
</target>
689702

690703
<target name="macosx-dist-sign" if="codesign">
691704
<echo>

todo.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ X xattr -d -r com.apple.quarantine
1111
X https://github.com/steakknife/unsign
1212
X https://developer.apple.com/library/content/technotes/tn2318
1313
X 'run sketches on display' message shows up on clean install
14+
X should ant run launch the .app so that launchsvcs stuff works properly?
15+
X double-clicking a .pde file won't open the app correctly
16+
X add 'ant app' target, at least for macOS
1417

1518
gohai
1619
X IO library updates
1720
X https://github.com/processing/processing/pull/5044
1821

19-
_ should ant run launch the .app so that launchsvcs stuff works properly?
20-
2122
_ sketch.properties not being written if initial mode is p5.js?
2223
_ when creating a sketch within non-Java mode, should write the settings file
2324
_ so that it re-loads in the proper environment

0 commit comments

Comments
 (0)