> On Sep 27, 2022, at 2:48 PM, Alexander Matveev <[email protected]>
> wrote:
>
> Hi Michael,
>
> It is not possible to provide a unique or hashed CFBundleIdentifier. We
> already implemented to throw error if —strip-native-commands are not provided
> to jlink or if provided runtime contain bin directory.
> Look at https://github.com/openjdk/jdk/pull/8666
> <https://github.com/openjdk/jdk/pull/8666>
>
> Thanks,
> Alexander
>
Alexander
I assume you do this only if --mac-app-store is indicated? I have an
application, not for the App Store, that excludes —strip-native-commands jlink
parm and as I mentioned I get all of the native commands. I don’t pay much
attention to the messages because it has been working fine for some time, but I
don’t think any exceptions are thrown.
My suggestion is that even doing this and not including —mac-app-store should
get a warning it won’t work for App Store so that if a developer is working on
an application with native commands and only when complete tries adding the
—mac-app-store parameter they would know immediately and not after considerable
effort that there is a problem.
Thanks
Mike
From the java shell app with embedded commands…
set java.home
java.home=/Users/mjh/HalfPipe/HalfPipe_jpkg/outputdir/HalfPipe.app/Contents/runtime/Contents/Home
exec ${java.home}/bin/java -version
openjdk version "19" 2022-09-20
OpenJDK Runtime Environment (build 19+36-2238)
OpenJDK 64-Bit Server VM (build 19+36-2238, mixed mode)