Use a .zip and the run from DMG problem goes away. 
I don’t think there should be any code to detect if NB is running from a DMG. 
It isn’t worth it when the problem is so easily avoided. 

Scott

> On Feb 2, 2019, at 12:25 PM, Emilian Bold <emilian.b...@gmail.com> wrote:
> 
> Oh, I saw this comment on
> https://cwiki.apache.org/confluence/display/NETBEANS/State+of+the+Apache+NetBeans+Installers
> 
> This debate was had once about 14 years ago - and the decision to go with
>> .pkg installers on Mac OSX was made for this reason: There were a lot of
>> "NetBeans is unusably slow" reports on OSX.
>> The reason? A LOT of users never unpacked the .app - they were running it
>> directly from the mounted, compressed .dmg image. It turns out that's not
>> that unusual.
>> Random access Java classloading does not play nicely AT ALL with the
>> compression used for .dmg images.
>> I strongly recommend not repeating that mistake.
> 
> 
> I believe NetBeans should detect if it's being executed from a DMG and warn
> the user about it. I did have an user with an utterly broken install due to
> AppTranslocation.
> 
> Still, using a DMG is the way to go imho.
> 
> --emi
> 
> 
>> On Sat, Feb 2, 2019 at 6:32 PM Emilian Bold <emilian.b...@gmail.com> wrote:
>> 
>> Hello,
>> 
>> I can share the CoolBeans installers but they are no big deal, not
>> sure if they are good enough for NetBeans...
>> 
>> My macOS DMG uses a variation of the Carl J. Mosca script does
>> (Carl's script has a bug as it assumes the location never changes; I
>> would make a PR if I wouldn't have changed so much stuff).
>> 
>> My Windows installer uses InnoSetup and has again a very basic script,
>> based on what Stephen Cumminger shared on the mailing list a while
>> back. It's very basic, but gets the job done of copying the files,
>> creating shortcuts and providing an uninstaller.
>> 
>> I believe these are actually enough for end users, but NetBeans always
>> had a much more fancy installer, with Glassfish and many other things.
>> Especially for macOS I always wanted a clean drag-and-drop DMG, no
>> package with a wizard.
>> 
>> I think it's important that both the DMG and the EXE are digitally signed.
>> Windows particularly has very scary warning messages for unsigned EXEs.
>> 
>> --emi
>> 
>> 
>> 
>> On Sat, Feb 2, 2019 at 5:14 PM Geertjan Wielenga
>> <geertjan.wiele...@googlemail.com.invalid> wrote:
>>> 
>>> Hi all,
>>> 
>>> Tried to gather different threads together in the below to get a thorough
>>> overview of where and why we are where we are:
>>> 
>>> 
>> https://cwiki.apache.org/confluence/display/NETBEANS/State+of+the+Apache+NetBeans+Installers
>>> 
>>> Thanks,
>>> 
>>> Gj
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to