Skip to content

Commit 225f6ef

Browse files
committed
update app creator and bundle identifier to be unique for 4.x
1 parent f685a1b commit 225f6ef

File tree

2 files changed

+4
-37
lines changed

2 files changed

+4
-37
lines changed

build/build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@
487487
name="Processing"
488488
displayName="Processing"
489489
executableName="Processing"
490-
identifier="org.processing.app"
491-
signature="Pde3"
490+
identifier="org.processing.four"
491+
signature="Pde4"
492492
icon="macosx/processing.icns"
493493
copyright="© The Processing Foundation"
494494
shortVersion="${version}"

todo.txt

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ X "Could not run" "For more information, read revisions.txt and Help → Trouble
4848
X need to drop revisions.txt here and just reference Troubleshooting
4949
X NoClassDefError: processing/core/PApplet when starting 4.0a2 on Windows 10
5050
X https://github.com/processing/processing4/issues/154
51+
X change application signature from Pde3 to Pde4
52+
X also change the bundle identifier to avoid conflicts with 3
5153

5254
javafx
5355
X move JavaFX to its own library, too many weird quirks that it includes
@@ -100,7 +102,6 @@ for next release
100102
_ Code completion not working
101103
_ https://github.com/processing/processing4/issues/177
102104
_ confirmed not working from Sam's repo either
103-
_ change application signature from Pde3 to Pde4 (and package name as well)
104105

105106

106107
_ do a test to see if PApplet extends PSketch breaks libraries
@@ -1200,40 +1201,6 @@ _ need to make sure that it's ok to write to logs dir..
12001201
_ probably being removed from future OS X versions
12011202
_ Exiting a sketch with Command-Q or File > Quit doesn't call stop() on OS X
12021203
_ https://github.com/processing/processing/issues/186
1203-
_ investigate the sandboxing situation on OS X
1204-
_ http://developer.apple.com/library/mac/#documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW1
1205-
most sandbox violations are triggered by attempts to read/write to the
1206-
filesystem without user intervention (eg. without using an open/save
1207-
dialog) and/or from places outside the container (eg.
1208-
~/Library/Containers/yourapp/...).
1209-
A violation is also triggered by trying to execute an external process
1210-
from Java (ex. using Runtime.exec()).
1211-
If you look at the list of entitlements your application can have on
1212-
the Apple site(*) you can think whether your application is performing
1213-
an operation that would require enabling a specific entitlement, like
1214-
connecting to a network, printing, interacting with a usb or bluetooth
1215-
device, etc..
1216-
I encountered this problem too, I forgot to add it to my guide....
1217-
If you sign all the files in the bundle it won't work as codesign
1218-
doesn't follow the symlinks.
1219-
First sign your bundle:
1220-
codesign --verbose -f -s "$SIGNATURE_APP" \
1221-
--entitlements $ENTITLEMENTS \
1222-
$YOUR_APP.app
1223-
Then sign all the libraries:
1224-
find $YOUR_APP/Contents/ -type f \
1225-
\( -name "*.jar" -or -name "*.dylib"\) \
1226-
-exec codesign --verbose -f -s "$SIGNATURE_APP" \
1227-
--entitlements $ENTITLEMENTS {} \;
1228-
Finally you can create the package:
1229-
productbuild --component YOUR_APP.app /Applications \
1230-
--sign "$SIGNATURE_INST" YOUR_APP.pkg
1231-
You can test if the package work with this command:
1232-
sudo installer -store -pkg $YOUR_APP.pkg -target /
1233-
You can also verify all libraries have been signed
1234-
find YOUR_APP/Contents/ -type f \
1235-
\( -name "*.jar" -or -name "*.dylib"\) \
1236-
-exec codesign --verbose --verify {} \;
12371204

12381205

12391206
DIST / Linux

0 commit comments

Comments
 (0)