Publishing a Java Application to the Mac Store
I am currently trying to create a signed paket installer with javapackager to publish my Java app to the Mac Store. This is what I have done so far:
- I requested a certificate for the app and installer and added them to the keychain
- create icon file
- create a permissions file (its just a test app, so only sanbox):
com.apple.security.app-sandbox
- create PKG:
javapackager -deploy -srcFiles Test.jar -native mac.appStore -BsystemWide = true -title Titel -name Name -outdir / Users / mac / Desktop / -outfile temp -BappVersion = 1.0.0 -appclass app.example. main -Bidentifier = app.example.main -Bicon = / Users / mac / Desktop / App.icns -Bmac.app-store-rights-path = App.entitlements -Bmac.category = public.app-category.business
So far so good ...
The task runs without issue, but when I try to download a PKG file using Application Loader I get the following error messages:
-
ERROR ITMS-90511: "CFBundleIdentifier Collision. Info.plist CFBundleIdentifier" com.oracle.java.8u131.jdk "value in" Name.app/Contents/PlugIns/Java.runtime "is already in use by another application."
-
ERROR ITMS-90296: "Application sandbox is not enabled. The following executables must include the" com.apple.security.app-sandbox "boolean right in the list of rights properties: [(" app.example.main.pkg / Payload /Name.app/Content/MacOS/Name "," app.example.main.pkg / Payload / Name.app / Contents / PlugIns / Java.runtime / Contents / Home / jre / lib / jspawnhelper ")] Refer to See the Sandbox Applications page at .apple.com / devcenter / mac / app-sandbox / for more information on your application sandbox.
The first mistake was easily fixed: I just edited the package ID in the plist to a unique one. According to this video javapackager handles the whole sign process automatically. I have no offense on this, so I'm not sure what to do here ...
I mean there isn't much information in this thread, this is what I have found so far:
-
speling.shemnon.com/blog/2014/04/10/getting-your-java-app-in-the-mac-app-store/-> same error
-
intransitione.com/blog/take-java-to-app-store/-> AppBundler is no longer supported
Perhaps someone is having similar problems and can help me.
Thank.
Jan
source to share
No one has answered this question yet
Check out similar questions: