On Mon, Mar 08, 2021 at 01:12:04AM +0800, Qian Yun wrote:
>
>
> On 3/8/21 12:23 AM, Waldek Hebisch wrote:
> > On Sun, Mar 07, 2021 at 11:34:15PM +0800, Qian Yun wrote:
<snip>
> > It would be good if somebody using Windows comments. For me this
> > is OK, just people making installers need to remember to bundle
> > sh.
> >
>
> Small correction: put ':search t' behind '(list "-c" S)'.
>
> Just tested, it builds fine, I'd like someone else to test this as well.
>
> I'm not clear about "bundle sh". During building, of course we are in
> a (msys2 mingw64) shell that has "sh.exe". Do you mean at run time?
Yes, in binary intallation.
> We can use "OBEY" when launching FriCASsys.exe from msys2 shell.
> When we click it in file browser, we can't use it because PATH not set.
> Same thing should happen when we give the binary to another user.
> But we shouldn't bundle "sh.exe" for that?!
Why not? Some widely used packages bundle quite a lot. Utilities
that we need (beside 'sh' we need I think 'rm', 'cp', 'grep',
'sort' and maybe few others) are tiny compared to FriCAS, so
really would not add too much bloat. Alternative strategy my
be to require 'msys' to be installed first and hardcode path
to 'msys' utilites into say 'fricas' script, so that when
FriCAS is run in whatever way it will find needed utilities
in the path. Windows users seem to expect packages that
bundle everything, so bundling may be better. Anyway,
final choice if for people making installers. We just need
to make sure that need for utilities is understood.
--
Waldek Hebisch