Note that this requires a running Finder. Note also that the process
involves attaching the created DMG which means that it might be
problematic with a machine that might have a volume by the same name
already attached (since the applescript uses the volume name, which is
not required to be unique).
original commit: b5618b7d139d1d30d2a82a681255bc185cb6dcc7
I've looked for a while, and it seems that there is no easy way to do
this, not even in bash, and worse with /bin/sh. So this is kind of
resorting to a simple parsing of the input, and using `eval' if it
starts with a tilde. Note the hack of not doing that when there is a
space, otherwise the `eval' thing will silently ignore it.
This hack means that it's easy to get into a mess if quotes are used
after a tilde, but that was already the case with the use of `eval' to
handle environment variables. It's not a real security issue, however,
since we're talking about a user who can just run any command anyway.
Also including a test file for the expansion functionality. If anyone
wants to improve this code, making the tests pass would reveal the
tricky issues.
[FWIW, I've asked on the #bash channel, and the only serious suggestion
was getting the paths as command-line arguments. This will, however,
defeat the point of being newbie friendly...]
Closes PR 12893.
original commit: 0814fd5fb5f660bc9698f21445976902317291d1
use it to improve some installer texts.
(Also update comment about required macro definitions.)
original commit: d69a45210cd67009a54ee5e47d922af23049b872
It's now simpler, shorter, and better. Some of the text is revised,
accepts environment variables when asked for the path, some additional
fixes in misc places.
original commit: 3589a703087038a58ae3c3cb27a5dc7d2e4aec47
This makes it behave more like the Windows installer, where the default
is to remove an older installation, which most people want to do anyway.
original commit: 08e70c5e45c8040c9e1440c3a7fa9f30caedae14