[External] : Re: RFR: 8350594: Misleading warning about install dir for DMG packaging
Michael Hall
mik3hall at gmail.com
Tue Mar 4 02:58:08 UTC 2025
> On Mar 3, 2025, at 1:51 PM, Michael Hall <mik3hall at gmail.com> wrote:
>
>
>
>> On Mar 3, 2025, at 1:37 PM, Alexey Semenyuk <alexey.semenyuk at oracle.com> wrote:
>>
>> Hi Michael,
>>
>> Thank you for the detailed report! I filed [1] ticket that, I hope, captures all findings from your report. Let me know if anything was missed or misunderstood.
>>
>> [1] https://bugs.openjdk.org/browse/JDK-8351073
>>
>> - Alexey
>>
>
> Hello Alexey,
>
>> jpackage should copy them as-is.
>
> It would be nice if this was the case but I think you need to be sure changes are made to the Info.plist to ensure the correct version is indicated in a few places.
>
> Apple offers something like plist buddy that could maybe be used.
>
Fwiw,
(base) mjh at MacBook-Pro-2 ~ % grep -C 1 CFBundleGetInfoString Info.plist
<string>libjli.dylib</string>
<key>CFBundleGetInfoString</key>
<string>Java SE 23.0.1+11-39</string>
(base) mjh at MacBook-Pro-2 ~ % /usr/libexec/PlistBuddy -c 'set:CFBundleGetInfoString Java SE 25' Info.plist
(base) mjh at MacBook-Pro-2 ~ % /usr/libexec/PlistBuddy -c 'save' Info.plist
Saving...
(base) mjh at MacBook-Pro-2 ~ % grep -C 1 CFBundleGetInfoString Info.plist
<string>libjli.dylib</string>
<key>CFBundleGetInfoString</key>
<string>Java SE 25</string>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250303/9807c8a9/attachment-0001.htm>
More information about the core-libs-dev
mailing list