Skip to content

Commit 1bd651b

Browse files
authored
Merge branch 'processing:master' into issue_353_fix
2 parents 0c70905 + 43036bd commit 1bd651b

File tree

4 files changed

+55
-33
lines changed

4 files changed

+55
-33
lines changed

build/build.xml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
</fail>
7979

8080
<fileset dir="macos/work/Processing.app/Contents" id="jdk-optional-macos">
81+
<!-- src.zip is 52 MB and we absolutely do not need it -->
8182
<include name="PlugIns/jdk-${jdk.detail}+${jdk.build}/Contents/Home/lib/src.zip" />
8283
</fileset>
8384

@@ -139,8 +140,11 @@
139140
</or>
140141
</condition>
141142

142-
<!-- Java 17.0.1 via Adoptium -->
143+
<property name="jdk.download.dist" value="jdk" />
144+
<!-- JRE? https://github.com/processing/processing4/issues/365 -->
145+
<!-- <property name="jdk.download.dist" value="jre" /> -->
143146

147+
<!-- Java 17.0.1 via Adoptium -->
144148
<!--
145149
https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jre_x64_mac_hotspot_17.0.1_12.tar.gz
146150
https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jre_aarch64_mac_hotspot_17.0.1_12.tar.gz
@@ -149,7 +153,7 @@
149153
https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jdk_arm_linux_hotspot_17.0.1_12.tar.gz
150154
https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.1_12.tar.gz
151155
-->
152-
<property name="jdk.download.url" value="https://github.com/adoptium/temurin17-binaries/releases/download/jdk-${jdk.detail}%2B${jdk.build}/OpenJDK17U-jdk_${jdk.download.arch}_${jdk.download.os}_hotspot_${jdk.detail}_${jdk.build}.${jdk.download.ext}" />
156+
<property name="jdk.download.url" value="https://github.com/adoptium/temurin17-binaries/releases/download/jdk-${jdk.detail}%2B${jdk.build}/OpenJDK17U-${jdk.download.dist}_${jdk.download.arch}_${jdk.download.os}_hotspot_${jdk.detail}_${jdk.build}.${jdk.download.ext}" />
153157

154158
<get src="${jdk.download.url}"
155159
dest="${jdk.archive.path}"
@@ -465,7 +469,8 @@
465469
<arg value="../${jdk.archive.path}"/>
466470
</exec>
467471

468-
<property name="jdk.dir" value="macos/work/jdk-${jdk.detail}+${jdk.build}.jdk/" />
472+
<!-- does not appear to be in use -->
473+
<!-- <property name="jdk.dir" value="macos/work/jdk-${jdk.detail}+${jdk.build}.jdk/" /> -->
469474

470475
<!-- https://github.com/processing/processing4/issues/284 -->
471476
<copy file="macos/appbundler-${os.arch}.jar"
@@ -495,9 +500,9 @@
495500
anything else outside /jdk) from the full JDK, even though
496501
it's primarily copying over the JRE folder. -->
497502
<runtime dir="${jdk.path.macos}/Contents/Home" />
498-
<!-- Eventually we'll want to load the JRE directly from
499-
the .tgz on the Oracle site, though it's in a folder called
500-
jdk1.7.0_40.jdk, so we'll need to strip that out. -->
503+
504+
<!-- use JRE https://github.com/processing/processing4/issues/365 -->
505+
<!-- <runtime dir="${jdk.path.macos}-jre/Contents/Home" /> -->
501506

502507
<!-- Same as runtime.jars, seen above; plus core.jar. -->
503508
<classpath file="../app/pde.jar" />
@@ -740,14 +745,15 @@
740745
<!-- codesign can't work inside jars? so instead temporarily unpack the files
741746
that contain dylib entries, just before doing our big signing event -->
742747

748+
<!--
743749
<property name="unpack.jogl" value="macos/work/Processing.app/Contents/Java/core/library/jogl-all-natives-macosx-universal" />
750+
<unzip src="${unpack.jogl}.jar" dest="${unpack.jogl}" />
744751
745752
<property name="unpack.gluegen" value="macos/work/Processing.app/Contents/Java/core/library/gluegen-rt-natives-macosx-universal" />
753+
<unzip src="${unpack.gluegen}.jar" dest="${unpack.gluegen}" />
754+
-->
746755

747756
<property name="unpack.jssc" value="macos/work/Processing.app/Contents/Java/modes/java/libraries/serial/library/jssc" />
748-
749-
<unzip src="${unpack.jogl}.jar" dest="${unpack.jogl}" />
750-
<unzip src="${unpack.gluegen}.jar" dest="${unpack.gluegen}" />
751757
<unzip src="${unpack.jssc}.jar" dest="${unpack.jssc}" />
752758

753759
<!-- <unzip src="macos/work/Processing.app/Contents/Java/modes/java/libraries/serial/library/jssc.jar" dest="macos/work/Processing.app/Contents/Java/modes/java/libraries/serial/library/jssc" /> -->
@@ -786,13 +792,17 @@
786792
</apply>
787793

788794
<!-- re-package the jar files after signing their macOS contents -->
795+
<!--
789796
<zip destfile="${unpack.jogl}.jar" basedir="${unpack.jogl}" />
790797
<zip destfile="${unpack.gluegen}.jar" basedir="${unpack.gluegen}" />
798+
-->
791799
<zip destfile="${unpack.jssc}.jar" basedir="${unpack.jssc}" />
792800

793801
<!-- delete the temporary directories w/ the jar contents -->
802+
<!--
794803
<delete dir="${unpack.jogl}" />
795804
<delete dir="${unpack.gluegen}" />
805+
-->
796806
<delete dir="${unpack.jssc}" />
797807

798808
<!-- sign the outer application, now that we've finished all the contents -->

build/macos/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
jdk-17*
22
processing-*.dmg
33
work
4+
appbundler.jar

core/todo.txt

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
1279 (4.0b4)
22
X put opengl libs for core into platform-specific subfolders
33
X get us ready for other platforms (M1 in particular)
4-
_ fixes Windows antivirus slowdowns
5-
_ https://github.com/processing/processing/issues/4783#issuecomment-269328168
6-
_ https://github.com/processing/processing/issues/4239
7-
_ https://jogamp.org/bugzilla/show_bug.cgi?id=1301
8-
_ https://stackoverflow.com/a/51100411
4+
X fixes Windows antivirus slowdowns
5+
X https://github.com/processing/processing/issues/4783#issuecomment-269328168
6+
X https://github.com/processing/processing/issues/4239
7+
X https://jogamp.org/bugzilla/show_bug.cgi?id=1301
8+
X https://stackoverflow.com/a/51100411
99

1010
api changes (in previous releases)
1111
X static versions of selectInput/selectOutput/selectFolder removed from PApplet
@@ -28,6 +28,9 @@ o setting up deps for it with projects that don't use it is a headache
2828
X just not possible
2929
X PShader would have to change packages
3030
X that much messier to link back with projects that rely on JOGL
31+
o would really be nice to pull out the OpenGL stuff
32+
o though would require just a single PShader class in .opengl package
33+
o way too messy, just need to stick with our base platforms
3134

3235
regressions
3336
X PShape doesn't allow attibutes of int type anymore
@@ -49,28 +52,31 @@ _ could implement this for the default, but also, SansSerif sucks
4952
_ https://stackoverflow.com/a/9482676
5053
_ in addition, it would need to be implemented for textWidth()
5154

52-
_ would really be nice to pull out the OpenGL stuff
53-
_ though would require just a single PShader class in .opengl package
54-
_ way too messy, just need to stick with our base platforms
55-
5655
_ Better solution for frame/surface methods
5756
_ should it be requestSize() because the change is not immediate?
5857
_ do we need a windowResized() event?
5958
_ https://github.com/processing/processing4/issues/53
59+
_ windowTitle(), windowLocation(), windowSize()
60+
_ windowResizable(), windowRatio()
6061
_ setting surface size needs to happen outside draw()
6162
_ surface.setSize() sadness etc
6263
_ https://github.com/processing/processing4/issues/162
6364
_ https://github.com/processing/processing4/issues/186
6465
_ https://github.com/processing/processing/issues/4129
66+
_ same goes for window resize events: queue them for when it's safe
67+
_ also probably need to be extending the display with the background color
68+
_ so that it's not neither stretching the viewport temporarily
69+
_ or leaving a gap at the edge of the window
70+
_ why does GL flash red when resizing?
71+
_ this may be because of gaps between EDT and updates
72+
_ fixing the surface.setSize() issue may fix it
6573

6674
_ fullScreen() not working on a second display with P2D or P3D
6775
_ https://github.com/processing/processing4/issues/352
6876

6977
_ update P2D reference to make clear about drawing order and quality
7078
_ https://github.com/processing/processing/issues/5880
7179

72-
_ why does GL flash red when resizing?
73-
7480

7581
load/save image
7682
_ https://github.com/processing/processing4/wiki/Exorcising-AWT

todo.txt

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,20 @@ X fixed with https://github.com/processing/processing4/commit/1a49263a94a2d7af
3030
platforms/variants/export
3131
X replacing macosx with macos in prefs and languages
3232
X major rewrite of Export to Application for the six supported platforms
33-
_ now writes folders with different names instead of 'application.'
33+
X now writes folders with different names instead of 'application.'
3434
X move build/macosx to build/macos and make other necessary changes
35+
X final supported platforms
36+
X as far as adoptium is concerned:
37+
X macos-x64, macos-aarch64 (m1), windows-x64, linux-x64, linux-arm32 (rpi)
38+
X release files: macosx -> macos, linux64 -> linux, windows64 -> windows
39+
X or macos-intel64, macos-applesi, linux-intel64, ...
40+
X what should macos-aarch64 be called?
41+
X Export Application can use nicer names, the libs thing is trickier
42+
o macosx vs macosx64 in JavaFX
43+
o the latter is making the export fail because it won't embed a Java VM
44+
o may be because it's exporting twice and overwriting?
45+
o or 64 takes precedence?
46+
X doesn't matter with things being redone
3547

3648
windows scaling
3749
X Fix "Could not delete disable_hidpi" message on macOS/Linux after closing prefs
@@ -227,15 +239,17 @@ _ docs are 3.x not 4.x
227239
_ Apple Silicon support
228240
_ https://github.com/processing/processing4/issues/128
229241
_ appbundler broken when built on something later than Mojave
230-
_ also need separate versions because the Monterey build won't run on x86_64
231242
_ https://github.com/processing/processing4/issues/284
243+
_ also need separate versions because the Monterey build won't run on x86_64
244+
_ https://github.com/processing/processing4/issues/364
232245
_ clean up dist: 'bin' and 'src' from Java Mode are included, iml files, etc
233246
_ loadShape(), show a warning when using style instead of presentation attributes
234247
_ Welcome screen or not?
235248
_ set a new preference for it, so people see it
236249
_ just skip the welcome screen on Windows hidpi dipslays?
237250
_ better to launch a web browser
238251
_ also use id/ask for login to help understand community?
252+
_ tell users about JavaFX, Movie Maker install, changing themes
239253
_ change help menu links to go to newer FAQ and the rest
240254
_ better means of understanding Library/Mode/Tool usage
241255
_ jeditsyntax is a mess of old-style getModifiers()
@@ -251,17 +265,8 @@ _ or at least avoid the multiple
251265

252266
platforms
253267
_ https://github.com/processing/processing4/wiki/Supported-Platforms
254-
_ final supported platforms
255-
_ as far as adoptium is concerned:
256-
_ macos-x64, macos-aarch64 (m1), windows-x64, linux-x64, linux-arm32 (rpi)
257-
_ release files: macosx -> macos, linux64 -> linux, windows64 -> windows
258-
_ or macos-intel64, macos-applesi, linux-intel64, ...
259-
_ what should macos-aarch64 be called?
260-
_ macosx vs macosx64 in JavaFX
261-
_ the latter is making the export fail because it won't embed a Java VM
262-
_ may be because it's exporting twice and overwriting?
263-
_ or 64 takes precedence?
264-
_ Export Application can use nicer names, the libs thing is trickier
268+
_ update JavaFX to use the supported platforms
269+
_ update Video library to use the new layout
265270

266271

267272
decisions before final 4.0 release

0 commit comments

Comments
 (0)